https://github.com/jmendiara/karma-jquery-chai
Karma plugin for Jquery + Chai + chai-jquery
https://github.com/jmendiara/karma-jquery-chai
Last synced: 2 months ago
JSON representation
Karma plugin for Jquery + Chai + chai-jquery
- Host: GitHub
- URL: https://github.com/jmendiara/karma-jquery-chai
- Owner: jmendiara
- License: mit
- Created: 2014-02-24T16:18:36.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-07-24T07:00:07.000Z (almost 10 years ago)
- Last Synced: 2025-03-27T20:51:11.565Z (3 months ago)
- Language: JavaScript
- Size: 162 KB
- Stars: 4
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
karma-jquery-chai
=================[Chai](http://chaijs.com) + [Jquery](https://github.com/jquery/jquery) + [chai-jquery](https://github.com/chaijs/chai-jquery) for [Karma](http://karma-runner.github.io)
*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:
```sh
$ npm install karma-jquery-chai --save-dev
```Add `jquery-chai` to the `frameworks` key in your Karma configuration:
```js
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](https://github.com/tubalmartin/karma-chai-sinon) and add it as a framework
```bash
$ npm install karma-chai-sinon --save-dev
``````js
module.exports = function(config) {
config.set({// frameworks to use
frameworks: ['mocha', 'chai-sinon', 'jquery-chai']// ...
```
License
-------
Thanks to [Túbal Martín](https://github.com/tubalmartin) for this plugin inspiration and the Very-Obvious-C&P of his [README.md](https://github.com/tubalmartin/karma-chai-sinon/blob/master/README.md)MIT Licensed
[](https://bitdeli.com/free "Bitdeli Badge")