Skip to content

jmendiara/karma-jquery-chai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

karma-jquery-chai

Chai + Jquery + chai-jquery for Karma

What makes this plugin different from karma-chai-jquery?

  • It uses (and will always use) the latest compatible versions of every library.
  • It uses peerDependencies only.
  • No bower dependency.

Installation

Install the plugin from npm:

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

Add jquery-chai to the frameworks key in your Karma configuration:

module.exports = function(config) {
  config.set({

    // frameworks to use
    frameworks: ['mocha', 'jquery-chai']

    // ...

It can coexist with others plugins based on peerDependencies without any trouble. Wanna have the magic combo of sinon + chai + sinon-chai + jquery + chai-jquery?

install karma-chai-sinon and add it as a framework

$ npm install karma-chai-sinon --save-dev
module.exports = function(config) {
  config.set({

    // frameworks to use
    frameworks: ['mocha',  'chai-sinon', 'jquery-chai']

    // ...

License

Thanks to Túbal Martín for this plugin inspiration and the Very-Obvious-C&P of his README.md

MIT Licensed

Bitdeli Badge

About

Karma plugin for Jquery + Chai + chai-jquery

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •