Skip to content

devoto13/karma-jasmine-dom-matchers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

karma-jasmine-dom-matchers

Karma plugin to inject Jasmine DOM Matchers for Jasmine.

Installation

npm install karma-jasmine-dom-matchers

TypeScript users should also install type definitions:

npm install @types/jasmine_dom_matchers

Integration

Just include 'jasmine-dom-matchers' in the frameworks and 'karma-jasmine-dom-matchers'in the plugins section of your config

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

Usage

See jasmine_dom_matchers for available matchers and usage examples.

Credits

Plugin implementation is adapted from very similar plugin - karma-jasmine-matchers by Jamie Mason. Licensed under MIT.

About

Karma plugin to inject Jasmine DOM Matchers for Jasmine

Resources

License

Stars

Watchers

Forks

Packages

No packages published