karma-jasmine-diff

0.1.1 • Public • Published

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

Package Sidebar

Install

npm i karma-jasmine-diff

Weekly Downloads

1

Version

0.1.1

License

MIT

Last publish

Collaborators

  • jimf