-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathjest.config.js
37 lines (36 loc) · 983 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 = {
/// ////////////
// TESTS SETUP
/// ////////////
preset: "jest-preset-preact",
setupFiles: ["./jest.setup.js"],
cacheDirectory: "./.cache",
maxWorkers: "80%",
transform: { "\\.jsx?$": "babel-jest" },
moduleDirectories: ["node_modules"],
notify: true,
roots: ["src", "core", "configurations"],
slowTestThreshold: 5,
testMatch: ["**/__tests__/**/*.js?(x)", "**/?(*.)+(spec|test).js?(x)"],
testPathIgnorePatterns: ["\\\\node_modules\\\\"],
testURL: "http://localhost:8000",
verbose: true,
moduleFileExtensions: ["js", "jsx"],
/// ////////////
// COVERAGE SETUP
/// ////////////
collectCoverageFrom: ["core/**/*.{js,jsx}", "src/**/*.{js,jsx}", "!**/node_modules/**", "!**/vendor/**"],
coverageDirectory: "coverage",
coverageThreshold: {
global: {
branches: 50,
functions: 60,
lines: 70,
statements: -10,
},
},
displayName: {
name: "EOSC Portal Commons",
color: "blue",
},
};