0.0.2 • Published 7 years ago

karma-mocha-should v0.0.2

Weekly downloads
1
License
Apache 2
Repository
github
Last release
7 years ago

karma-mocha-should

Karma plugin for mocha-should

Usage

$ npm install mocha-should --save-dev

Add mocha-should to the frameworks key in your Karma configuration before chai:

module.exports = function(config) {
  config.set({
    // available frameworks: https://npmjs.org/browse/keyword/karma-adapter
    frameworks: [ "commonjs", "mocha", "mochashould", "chai" ],

    preprocessors: {
      "**/mocha-should/index.js": [ "commonjs" ],
      "test/**/*.js": [ "commonjs" ]
    }
  });
};

See examples folder for Mocha test and karma example files.

Thanks

To the team at karma-chai for their Karma plugin, which was used as a guide.