-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjest.config.js
More file actions
48 lines (40 loc) · 1.06 KB
/
jest.config.js
File metadata and controls
48 lines (40 loc) · 1.06 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
module.exports = {
// Test environment
testEnvironment: 'node',
// Test match patterns
testMatch: [
'**/tests/**/*.test.js',
'**/tests/**/*.spec.js'
],
// Transform ignore patterns - allow chokidar to be transformed
transformIgnorePatterns: [
'node_modules/(?!(chokidar)/)'
],
// Map fast-check to its CJS build (fast-check v4 is ESM-first, Jest 27 needs CJS)
moduleNameMapper: {
'^fast-check$': '<rootDir>/node_modules/fast-check/lib/cjs/fast-check.js',
},
// Coverage configuration
collectCoverageFrom: [
'bin/**/*.js',
'lib/**/*.js',
'!lib/i18n.js', // Exclude i18n (already tested)
'!**/node_modules/**',
'!**/tests/**'
],
// Coverage thresholds (disabled for MVP - optional tests were skipped)
// coverageThreshold: {
// global: {
// branches: 70,
// functions: 70,
// lines: 70,
// statements: 70
// }
// },
// Coverage reporters
coverageReporters: ['text', 'lcov', 'html'],
// Verbose output
verbose: true,
// Test timeout
testTimeout: 10000
};