-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathjest.config.js
More file actions
60 lines (52 loc) · 1.55 KB
/
jest.config.js
File metadata and controls
60 lines (52 loc) · 1.55 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
module.exports = {
testEnvironment: "node",
// Force Jest to look in our directory regardless of node_modules
testMatch: [
"**/tests/unit/*.test.js",
"**/tests/integration/*.test.js"
],
// Clear all ignore patterns that might interfere
testPathIgnorePatterns: [],
modulePathIgnorePatterns: [],
transformIgnorePatterns: [],
// Setup files
setupFilesAfterEnv: ["<rootDir>/tests/setup.js"],
// Enhanced coverage settings
collectCoverage: false, // Set to true when running coverage
collectCoverageFrom: [
"easee-client/**/*.js",
"!easee-client/**/*.html",
"!tests/**",
"!node_modules/**",
"!coverage/**"
],
coverageDirectory: "coverage",
coverageReporters: [
"text", // Console output
"text-summary", // Brief summary
"lcov", // For IDE integration and CI
"html", // Interactive HTML report
"json", // JSON output for CI
"clover" // XML format for some CI systems
],
// Coverage thresholds - adjusted for current coverage levels
coverageThreshold: {
global: {
branches: 8, // Currently at 7.98%
functions: 9, // Currently at 8.69%
lines: 12, // Currently at 12.01%
statements: 12 // Currently at 11.91%
},
// Per-file thresholds - more lenient to start
"./easee-client/": {
branches: 7,
functions: 8,
lines: 12,
statements: 11
}
},
// Force Jest to process files in node_modules
testEnvironmentOptions: {},
// Disable cache to avoid issues
cache: false
};