forked from relay-tools/relay-hooks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.js
47 lines (42 loc) · 1010 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
38
39
40
41
42
43
44
45
46
47
//const { defaults: tsjPreset } = require("ts-jest/presets");
module.exports = {
transform: {
".*": "<rootDir>/scripts/jest/preprocessor.js"
},
verbose: true,
globals: {
__DEV__: true
},
moduleFileExtensions: ["ts", "tsx", "js", "json"],
testURL: "http://localhost",
testEnvironment: "node",
timers: "fake",
testMatch: ["<rootDir>/__tests__/**/*.js"],
modulePathIgnorePatterns: [
"<rootDir>/lib/",
"<rootDir>/node_modules/(?!(fbjs/lib/|react/lib/|fbjs-scripts/jest))"
],
testPathIgnorePatterns: [
"/node_modules/",
"/lib/",
"<rootDir>/lib/",
"<rootDir>/node_modules/"
],
roots: [
"<rootDir>/",
"<rootDir>/node_modules/fbjs/lib/",
"<rootDir>/node_modules/fbjs-scripts/jest"
],
setupFiles: [
"<rootDir>/node_modules/fbjs-scripts/jest/environment.js",
"<rootDir>/scripts/jest/environment.js"
],
coverageThreshold: {
global: {
branches: 0,
functions: 0,
lines: 0,
statements: 0
}
}
};