1.0.0 • Published 6 years ago

karma-jasmine-extra-matchers v1.0.0

Weekly downloads
8
License
MIT
Repository
github
Last release
6 years ago

karma-jasmine-extra-matchers

Code Climate dependencies Status Downloads

A Karma plugin to inject jasmine-extra-matchers

Installation

npm install karma-jasmine-extra-matchers --save-dev

Usage

Include jasmine-extra-matchers in the frameworks and karma-jasmine-extra-matchers in the plugins section of your config

module.exports = function(config) {
  config.set({
    frameworks: [
      'jasmine',
      'jasmine-extra-matchers'
    ],
    files: [
      'src/**/*.js',
      'src/**/*.spec.js'
    ],
    // also you must add it as a plugin
    plugins: [
      'karma-jasmine',
      'karma-jasmine-extra-matchers'
    ]
  });
};