forked from formatjs/formatjs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
35 lines (35 loc) · 886 Bytes
/
jest.config.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
module.exports = {
preset: 'ts-jest/presets/js-with-babel',
testRegex: ['/test/(functional|unit)/.*\\.(ts|tsx)'],
testPathIgnorePatterns: [
'test/functional/support',
'/test/unit/testUtils',
'__snapshots__',
],
collectCoverageFrom: ['src/**/*.{ts,tsx}'],
coverageReporters: ['lcov', 'text', 'text-summary', 'html'],
transformIgnorePatterns: [
'/node_modules/(?!intl-messageformat|intl-messageformat-parser).+\\.js$',
],
coverageThreshold: {
global: {
branches: 85,
functions: 100,
lines: 95,
statements: 95,
},
},
setupFilesAfterEnv: ['<rootDir>/test/setup.js'],
globals: {
'ts-jest': {
tsConfig: {
module: 'commonjs',
allowJs: true,
sourceMap: true,
outDir: './tmp',
},
diagnostics: false,
},
},
snapshotSerializers: ['enzyme-to-json/serializer'],
};