-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathjest.config.js
37 lines (37 loc) · 977 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
36
37
module.exports = {
cacheDirectory: ".jest-cache",
coverageDirectory: ".jest-coverage",
coveragePathIgnorePatterns: ["<rootDir>/packages/(?:.+?)/lib/"],
coverageReporters: ["html", "text"],
coverageThreshold: {
global: {
branches: 100,
functions: 100,
lines: 100,
statements: 100
}
},
globalSetup: "<rootDir>/test-utils/global-setup.js",
moduleFileExtensions: [
"js",
"jsx",
"ts",
"tsx",
"json",
"node",
"yml",
"yaml"
],
moduleNameMapper: {
"\\.(s?css|less)$": "identity-obj-proxy",
"\\.(pbf)$": "<rootDir>/__mocks__/file-mock.js",
"\\.(svg)$": "<rootDir>/__mocks__/file-mock.js"
},
testPathIgnorePatterns: ["<rootDir>/packages/(?:.+?)/((esm)|(lib))/"],
transform: {
"\\.[jt]sx?$": "babel-jest",
"\\.ya?ml$": "yaml-jest",
"node_modules/chroma-js/.+\\.js$": "<rootDir>/transform-esm-modules.js"
},
transformIgnorePatterns: ["/node_modules/(?!(chroma-js)/)"]
};