mocha loader for webpack
Usage
Command Line
Hint: when using !
in the bash command line, you must escape it by prepending a \
webpack-dev-server 'mocha!./my-client-tests.js' --options webpackOptions.js
enhanced-require 'mocha!./my-server-tests.js'
webpack.config.js
module.exports = {
entry: 'mocha!./entry-file.js',
output: {
path: __dirname,
filename: 'bundle.js'
}
}