A Karma plugin to inject Jasmine-Jquery for Jasmine.
The easiest way to install `karma-jasmine-jquery-matchers' is via Npm:
npm install karma-jasmine-jquery-matchers --save-dev
You must include 'jasmine-jquery-matchers' in the frameworks
section of your config :
module.exports = function(config) {
config.set({
frameworks: [
'jasmine',
'jasmine-jquery-matchers'
],
files: [
'src/**/*.js',
'src/**/*.spec.js'
]
});
};
The list of available matchers is available here
The plugin is to be used with jasmine v2.0.0+. It uses the library jQuery 2.0.