forked from cerner/terra-application
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjestconfig.js
37 lines (37 loc) · 798 Bytes
/
jestconfig.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
module.exports = {
collectCoverage: true,
coverageDirectory: 'tests/jest/reports/coverage',
collectCoverageFrom: [
'src/**/*.js',
'src/**/*.jsx',
],
coveragePathIgnorePatterns: [
'src/terra-dev-site',
],
coverageReporters: [
'html',
'lcov',
'cobertura',
'text-summary',
],
globalSetup: './jestGlobalSetup.js',
setupFiles: [
'raf/polyfill',
'./jestsetup.js',
],
testMatch: [
'**/jest/**/(*.)(spec|test).js?(x)',
],
roots: [process.cwd()],
snapshotSerializers: [
'<rootDir>/node_modules/enzyme-to-json/serializer',
],
moduleDirectories: [
'aggregated-translations',
'node_modules',
],
moduleNameMapper: {
'\\.(css|scss|svg)$': 'identity-obj-proxy',
'github-markdown-css': 'identity-obj-proxy',
},
};