How to use the kcd-scripts/jest.coveragePathIgnorePatterns function in kcd-scripts

To help you get started, we’ve selected a few kcd-scripts examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github testing-library / dom-testing-library / tests / jest.config.node.js View on Github external
const path = require('path')
const baseConfig = require('kcd-scripts/jest')

module.exports = {
  ...baseConfig,
  rootDir: path.join(__dirname, '..'),
  displayName: 'node',
  testEnvironment: 'jest-environment-node',
  coveragePathIgnorePatterns: [
    ...baseConfig.coveragePathIgnorePatterns,
    '/__tests__/',
    '/__node_tests__/',
  ],
  testMatch: ['**/__node_tests__/**.js'],
}
github testing-library / dom-testing-library / tests / jest.config.dom.js View on Github external
const path = require('path')
const baseConfig = require('kcd-scripts/jest')

module.exports = {
  ...baseConfig,
  rootDir: path.join(__dirname, '..'),
  displayName: 'dom',
  coveragePathIgnorePatterns: [
    ...baseConfig.coveragePathIgnorePatterns,
    '/__tests__/',
    '/__node_tests__/',
  ],
  testEnvironment: 'jest-environment-jsdom',
}
github downshift-js / downshift / jest.config.js View on Github external
const jestConfig = require('kcd-scripts/jest')

module.exports = Object.assign(jestConfig, {
  coveragePathIgnorePatterns: [
    ...jestConfig.coveragePathIgnorePatterns,
    '.macro.js$',
    '/src/stateChangeTypes.js',
  ],
})