mocha-yaml-loader

1.0.3 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i mocha-yaml-loader

Weekly Downloads

1,421

Version

1.0.3

License

MIT

Last publish

Collaborators

  • strothj