mocha-yaml-loader

Loads yaml files sourced by files being tested by mocha.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
mocha-yaml-loader
201.0.37 years ago7 years agoMinified + gzip package size for mocha-yaml-loader in KB

Readme

mocha-yaml-loader
A babel/register style hook to load yaml files.
It allows your mocha tests to use code with imports like:
import swaggerDoc from './swagger.yaml';

Installation

$ npm install --save-dev mocha-yaml-loader
$ yarn add --dev mocha-yaml-loader

Usage

mocha --require mocha-yaml-loader