Karma-Jasmine is an adapter for the Jasmine testing framework, which is shipped with Karma by default.
Karma-Jasmine is an adapter for the Jasmine testing framework.
Installation
This plugin ships with Karma by default, and there isn't any need to install it.
The easiest way is to keep karma-jasmine as a devDependency in your package.json file.
{
"devDependencies": {
"karma": "~0.10",
"karma-jasmine": "~0.1"
}
}
You can simply do it by:
npm install karma-jasmine --save-dev
Configuration
// karma.conf.js
module.exports = function(config) {
config.set({
frameworks: ['jasmine'],
files: [
'*.js'
]
});
};