0.1.1 • Published 7 years ago

karma-jasmine-diff v0.1.1

Weekly downloads
162
License
MIT
Repository
github
Last release
7 years ago

Karma Jasmine Diff

Karma plugin for injecting Jasmine Diff.

npm Version Build Status Test Coverage Dependency Status

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