-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathjest.config.js
48 lines (47 loc) · 1.01 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
/**
* Copyright 2017 Palantir Technologies, Inc. All rights reserved.
*/
/**
* The Jest configuration object.
* @see http://facebook.github.io/jest/docs/configuration.html
*/
module.exports = {
bail: false,
collectCoverage: false,
collectCoverageFrom: [
'src/**/*.{ts,tsx}',
'!**/*.d.ts',
],
coveragePathIgnorePatterns: [],
coverageThreshold: {
global: {
branches: 50,
functions: 50,
lines: 50,
statements: 50,
},
},
globals: {
'ts-jest': {
tsconfig: 'src/tsconfig.json',
},
},
moduleFileExtensions: [
'js',
'json',
'ts',
'tsx',
],
testEnvironment: 'jsdom',
testMatch: [
'<rootDir>/src/**/__tests__/*.{ts,tsx}',
],
transform: {
'^.+\\.(js|jsx|ts|tsx)$': 'ts-jest',
},
transformIgnorePatterns: [
'/node_modules/(?!(lodash-es)/)',
],
verbose: true,
preset: 'ts-jest/presets/js-with-ts',
}