webpack-plugin-mocha

0.0.2 • Public • Published

webpack-plugin-mocha

build_status

A Webpack plugin to run mocha tests.

Usage

Install the plugin with npm i webpack-plugin-mocha

In your webpack.config.js:

var WebpackMochaPlugin = require('webpack-mocha-plugin');
 
module.exports = {
  ...
  plugins: [
    new WebpackMochaPlugin({
      emitWarn: false, // Emit warnings instead of errors on test failures.
      testDir: './test/', // Root directory containing tests
      pattern: '.spec.js', // A RegExp to match test files
    }),
  ],
  ...
}

Readme

Keywords

Package Sidebar

Install

npm i webpack-plugin-mocha

Weekly Downloads

0

Version

0.0.2

License

MIT

Last publish

Collaborators

  • naoey