forked from grailbio/ui-components
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
35 lines (35 loc) · 845 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 = {
collectCoverageFrom: [
"src/**/*.{ts,tsx}",
"!src/**/index.ts",
"!src/types/**/*.ts",
"!src/dev/**/*.{ts,tsx}",
"!src/__deprecated__/**/*.{ts,tsx}",
"!src/utils/*.{ts,tsx}",
],
coverageThreshold: {
"src/**/*.{ts,tsx}": {
lines: 25,
},
},
moduleNameMapper: {
"^.+\\.(css|less|scss)$": "identity-obj-proxy",
"\\.entry.js": "<rootDir>/__mocks__/pdfMock.js",
},
testEnvironment: "jest-environment-jsdom-sixteen",
testPathIgnorePatterns: ["/node_modules/", "/dist", "/cypress/"],
transform: {
".tsx?$": "ts-jest",
},
setupFilesAfterEnv: [
"<rootDir>/src/setupTests.ts",
"jest-mock-console/dist/setupTestFramework.js",
],
globals: {
"ts-jest": {
diagnostics: {
ignoreCodes: [2345, 2739, 2740, 2741, 2769],
},
},
},
};