-
Notifications
You must be signed in to change notification settings - Fork 81
Expand file tree
/
Copy pathjest.config.js
More file actions
48 lines (48 loc) · 1.13 KB
/
jest.config.js
File metadata and controls
48 lines (48 loc) · 1.13 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
/** @type {import('jest').Config} */
module.exports = {
testEnvironment: 'node',
testMatch: [
'**/__tests__/**/*.test.js',
'**/*.test.js'
],
testPathIgnorePatterns: [
'/node_modules/',
'/plugins/.*/lib/',
'/.claude/worktrees/',
'/worktrees/'
],
modulePathIgnorePatterns: [
'/.claude/worktrees/',
'/worktrees/'
],
collectCoverageFrom: [
'bin/**/*.js',
'scripts/**/*.js',
'adapters/**/*.js',
'lib/**/*.js',
'!lib/**/*.test.js',
'!adapters/**/README.md'
],
moduleNameMapper: {
'^@agentsys/lib$': '<rootDir>/lib/index.js',
'^@agentsys/lib/(.*)$': '<rootDir>/lib/$1'
},
coverageDirectory: 'coverage',
coverageReporters: ['text', 'lcov', 'html'],
coverageThreshold: {
global: {
branches: 5,
functions: 10,
lines: 10,
statements: 10
}
},
verbose: true,
// Clear mocks between tests
clearMocks: true,
// Restore mocks after each test
restoreMocks: true,
// Run tests sequentially - parallel workers cause race conditions on shared
// filesystem state (discovery cache, adapter generation, preflight validators)
maxWorkers: 1
};