-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
76 lines (67 loc) · 1.72 KB
/
Copy pathjest.config.js
File metadata and controls
76 lines (67 loc) · 1.72 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
export default {
preset: 'ts-jest/presets/default-esm',
extensionsToTreatAsEsm: ['.ts'],
transform: {
'^.+\\.ts$': ['ts-jest', {
useESM: true,
tsconfig: {
target: 'es2020',
module: 'esnext',
moduleResolution: 'node',
allowSyntheticDefaultImports: true,
esModuleInterop: true,
},
}],
},
moduleNameMapper: {
'^(\\.{1,2}/.*)\\.js$': '$1',
},
testMatch: [
'**/tests/**/*.test.ts',
'**/?(*.)+(spec|test).ts'
],
collectCoverageFrom: [
'src/**/*.ts',
'!src/**/*.d.ts',
'!src/index.ts'
],
testEnvironment: 'node',
// Test setup and teardown
setupFilesAfterEnv: ['<rootDir>/tests/helpers/setup.ts'],
globalTeardown: '<rootDir>/tests/helpers/cleanup.ts',
// Coverage thresholds (Disabled for now - working toward CLAUDE.md 100% core requirement)
// coverageThreshold: {
// './src/core/': {
// branches: 100,
// functions: 100,
// lines: 100,
// statements: 100
// }
// },
// Coverage reporting
coverageReporters: ['text', 'lcov', 'html'],
coverageDirectory: 'coverage',
// Test timeout for storage operations
testTimeout: 15000,
// Verbose output control
verbose: process.env.VERBOSE_TESTS === 'true',
// Test file organization
roots: ['<rootDir>/src', '<rootDir>/tests'],
// Module resolution
moduleDirectories: ['node_modules', 'src'],
// Ignore patterns
testPathIgnorePatterns: [
'/node_modules/',
'/dist/',
'/coverage/',
'tests/output/',
'tests/storage-integration.js' // Old integration script
],
// Coverage ignore patterns
coveragePathIgnorePatterns: [
'/node_modules/',
'/dist/',
'/tests/',
'src/index.ts'
]
};