-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathjest.config.quick.js
More file actions
54 lines (46 loc) · 1.51 KB
/
Copy pathjest.config.quick.js
File metadata and controls
54 lines (46 loc) · 1.51 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
// Quick Jest configuration - fast, stable tests only
module.exports = {
testEnvironment: 'node',
// Only stable, fast tests
// Explicit test files only — no wildcards to prevent chdir tests from sneaking in
// cli-integration.test.js excluded: uses process.chdir(), crashes subsequent suites
testMatch: [
'**/test/templates/agent-registry-consistency.test.js',
'**/test/local-mode/local-issues.test.js',
'**/test/local-mode/local-prd-epic.test.js',
'**/test/core/PluginManager.test.js',
'**/test/installation/generate-agent-xml.test.js',
'**/test/installation/e2e-scenarios.test.js',
'**/test/templates/template-reader.test.js',
'**/test/unit/plugin-command-sync.test.js',
'**/test/unit/sync-plugin-scripts.test.js'
],
testPathIgnorePatterns: [
'/node_modules/',
'<rootDir>/.claude/worktrees/'
],
// Keep parallel agent worktrees out of the haste-map (#608)
modulePathIgnorePatterns: [
'<rootDir>/.claude/worktrees/'
],
// Coverage settings
collectCoverageFrom: [
'autopm/.claude/scripts/**/*.js',
'bin/**/*.js',
'lib/**/*.js',
'!**/node_modules/**',
'!**/*.backup.js'
],
// Timeouts
testTimeout: 10000,
// TEMPORARY: Run tests serially to avoid process.chdir() race conditions
// TODO: Remove after implementing basePath parameter pattern
maxWorkers: 1,
// Clear mocks between tests
clearMocks: true,
restoreMocks: true,
// Less verbose for cleaner output
verbose: false,
// Simple reporter
reporters: ['default']
};