landuber-karma-chai-plugins

0.1.3 • Public • Published

karma-chai-plugins

Chai browser plugins set for Karma

Installation

Install the karma-chai-plugins:

$ npm install karma-chai-plugins --save-dev

Add chai and plugins you need to the frameworks key in your Karma configuration:

module.exports = (karma) ->
  karma.configure
 
    # frameworks to use 
    frameworks: ['mocha''chai''chai-as-promised']
 
    # ... 

Bundled plugins

Browser support

Same as Chai.js: IE 9+, Chrome 7+, FireFox 4+, Safari 5+ except should style that is currently not compatible with IE 9.

Consider karma-expect, if you need run tests in IE8 and lower.

Limited require.js support

karma-chai-plugins supports requirejs in tests, but for now it should be stated in frameworks before chai and other plugins:

module.exports = (karma) ->
  karma.configure
 
    # frameworks to use 
    frameworks: ['mocha''requirejs''chai''chai-as-promised']
 
    # ... 

Readme

Keywords

none

Package Sidebar

Install

npm i landuber-karma-chai-plugins

Weekly Downloads

1

Version

0.1.3

License

MIT

Last publish

Collaborators

  • landuber