0.0.2 • Published 7 years ago

webpack-plugin-mocha v0.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

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({
      breakOnFailure: false, // Break the build in case of test failures
      pattern: '.spec.js', // A Glob pattern to match test files ex. './test/**/+(*.spec.js|*.spec.jsx)'
      setupFile: undefined, // Module to be required before running the tests to set up the test environment
    }),
  ],
  ...
}
0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago