Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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'],
}
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',
}
const jestConfig = require('kcd-scripts/jest')
module.exports = Object.assign(jestConfig, {
coveragePathIgnorePatterns: [
...jestConfig.coveragePathIgnorePatterns,
'.macro.js$',
'/src/stateChangeTypes.js',
],
})