Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
'use strict'
const { defaults } = require('jest-config')
module.exports = {
transform: {
...defaults.transform,
'^.+\\.tsx?$': 'ts-jest',
},
testPathIgnorePatterns: [
...defaults.testPathIgnorePatterns,
'/examples/.*/plugins/',
'/packages/cli/',
],
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.tsx?$',
testURL: 'http://localhost/',
moduleFileExtensions: ['ts', 'tsx', ...defaults.moduleFileExtensions],
}
path.join( __dirname, 'jest', 'setup.js' ),
require.resolve( 'jest-enzyme' ),
],
snapshotSerializers: [ 'enzyme-to-json/serializer' ],
testEnvironment: 'node',
testMatch: [ '/**/test/*.[jt]s?(x)', '!**/.eslintrc.*' ],
transform: {
'\\.[jt]sx?$': path.join( __dirname, 'jest', 'transform', 'babel.js' ),
'\\.(gif|jpg|jpeg|png|svg|scss|sass|css)$': path.join(
__dirname,
'jest',
'transform',
'asset.js'
),
},
testPathIgnorePatterns: [ ...defaults.testPathIgnorePatterns, '/dist/' ],
verbose: false,
};
const { defaults } = require('jest-config')
module.exports = {
testPathIgnorePatterns: [
...defaults.testPathIgnorePatterns,
'/.cache/',
],
watchPathIgnorePatterns: [
...defaults.watchPathIgnorePatterns,
'/.cache/',
'/public/',
],
moduleNameMapper: {
'\\.css$': 'identity-obj-proxy',
},
}