chai-dom plugin for Karma Test Runner
$ npm install --save-dev karma-chai-dom
karma-chai-dom
requireschai
which is not included and recommended to be installed through karma-chai
module.exports = function(config) {
config.set({
frameworks: ['mocha', 'chai-dom', 'chai'],
//...
})
}
See the chai-dom documentation.