Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

karma-chai-dom

nathanboktae6.9kMIT1.1.0

chai-dom for Karma

karma, chai, dom, testing, browser-testing

readme

karma-chai-dom

chai-dom plugin for Karma Test Runner

Installation

$ npm install --save-dev karma-chai-dom
  • karma-chai-dom requires chai which is not included and recommended to be installed through karma-chai

Karma plugins load in reverse order so make sure that dom and chai come before chai-dom

module.exports = function(config) {
  config.set({
    frameworks: ['mocha', 'chai-dom', 'chai'],
    //...
  })
}

Usage

See the chai-dom documentation.