99.10.0 • Published 4 years ago

@temporg/config-karma v99.10.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

category: packages

config-karma

npm  build-status  MIT License  Code of Conduct

A shared karma config made by Rock Content

Installation

yarn add @temporg/config-karma

Usage

In your Karma config file:

/* karma.config.js */
const path = require('path')

module.exports = require('@temporg/config-karma')({
  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!')