Skip to content

c58/mocha-loader

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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'
    }
}

License

MIT (http://www.opensource.org/licenses/mit-license.php)

About

mocha loader module for webpack

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%