0.1.1 • Published 4 years ago
@rock-kit/ui-karma-config v0.1.1
category: packages
ui-karma-config
A shared karma config made by Rock Content.
Installation
yarn add @rock-kit/ui-karma-config
Usage
In your Karma config file:
/* karma.config.js */
const path = require('path')
module.exports = require('@rock-kit/ui-karma-config')({
bundle: './tests.bundle.js',
coverageThreshold: {
global: {
lines: 91
},
each: {
lines: 50
}
},
coverageDirectory: path.join(__dirname, '/coverage')
})
In your tests.bundle.js
file:
/* tests.bundle.js */
// import anything else you want to include before the tests here
// import the tests:
require('ui-tests-loader!')