Socket
Socket
Sign inDemoInstall

karma-jasmine-dom-matchers

Package Overview
Dependencies
1
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    karma-jasmine-dom-matchers

Karma plugin to inject Jasmine DOM Matchers for Jasmine.


Version published
Weekly downloads
2.9K
increased by22.76%
Maintainers
1
Install size
31.8 kB
Created
Weekly downloads
 

Readme

Source

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.

Keywords

FAQs

Last updated on 18 Jul 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc