karma-jasmine-diff
v0.1.1
Published
Karma plugin to add diff output to standard Jasmine matchers
Downloads
12
Maintainers
Readme
Karma Jasmine Diff
Karma plugin for injecting Jasmine Diff.
Installation
Install using npm:
$ npm install karma-jasmine-diff --save-dev
Usage
Add "jasmine-diff"
(along with "jasmine"
) to the frameworks
section of
your karma configuration file:
// karma.conf.js
module.exports = function (config) {
config.set({
// Add jasmine-diff AFTER jasmine
frameworks: ['jasmine', 'jasmine-diff'],
// Override default jasmine-diff options here
// jasmineDiff: {}
// ... other settings
})
}
karma-jasmine-diff attempts to pre-configure jasmine-diff for you, based on
the value of colors
. If colors
is true
, jasmine-diff will be configured
to use colors and inline diffs. If false
, jasmine-diff will be configured to
use no colors and unified diffs. To override auto-configuration, specify all
desired jasmine-diff options
via a jasmineDiff
object in your karma configuration.
Changelog
0.1.1
- Fix jasmine-diff dependency to include patch releases
0.1.0
- Initial release
License
MIT