webpack-plugin-mocha
A Webpack plugin to run mocha tests.
Usage
Install the plugin with npm i webpack-plugin-mocha
In your webpack.config.js:
var WebpackMochaPlugin = ; moduleexports = ... plugins: 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 ...