-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathjest.config.js
More file actions
89 lines (89 loc) · 2.5 KB
/
jest.config.js
File metadata and controls
89 lines (89 loc) · 2.5 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
77
78
79
80
81
82
83
84
85
86
87
88
89
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
roots: ['<rootDir>/src', '<rootDir>/tests'],
testMatch: ['**/__tests__/**/*.ts', '**/?(*.)+(spec|test).ts'],
testPathIgnorePatterns: ['/node_modules/', '/dist/', '/build/', 'src/cli/commands/test\\.ts$'],
transform: {
'^.+\\.ts$': 'ts-jest',
},
collectCoverageFrom: [
'src/**/*.ts',
'!src/**/*.d.ts',
'!src/**/*.test.ts',
'!src/**/*.spec.ts',
// Exclude CLI entry points and builders
'!src/cli/index.ts',
'!src/cli/command-builder.ts',
'!src/cli/functional.ts',
'!src/cli/global-options.ts',
// Exclude CLI commands that require user interaction or are WIP
'!src/cli/commands/collaborate.ts',
'!src/cli/commands/create.ts',
'!src/cli/commands/dashboard.ts',
'!src/cli/commands/setup.ts',
'!src/cli/commands/mcp.ts',
'!src/cli/commands/check.ts',
'!src/cli/commands/analyze.ts',
'!src/cli/commands/explain.ts',
'!src/cli/commands/fix.ts',
'!src/cli/commands/generate.ts',
'!src/cli/commands/init.ts',
'!src/cli/commands/map.ts',
'!src/cli/commands/migrate.ts',
'!src/cli/commands/mock.ts',
'!src/cli/commands/scaffold.ts',
'!src/cli/commands/sync.ts',
'!src/cli/commands/watch.ts',
'!src/cli/commands/diff.ts',
'!src/cli/commands/docs.ts',
'!src/cli/commands/stats.ts', // Stats command is a CLI wrapper, core logic tested
// Exclude experimental/WIP features
'!src/core/plugin-interactive.ts',
'!src/core/collaboration/**',
'!src/core/command-suggestions.ts',
'!src/core/config.ts',
'!src/core/error-recovery.ts',
'!src/core/faker-utils.ts',
'!src/core/infrastructure.ts',
'!src/core/memory-optimizer.ts',
'!src/core/performance-profiler.ts',
'!src/core/plugin-system.ts',
'!src/core/progressive-loader.ts',
'!src/core/schema-diff.ts',
'!src/core/schema-generation.ts',
'!src/core/schema-testing.ts',
'!src/core/schema-transformation.ts',
'!src/core/testing-infrastructure.ts',
'!src/core/documentation/**',
'!src/core/migration/**',
'!src/index.ts',
'!src/utils.ts',
'!src/utils/**',
],
coverageDirectory: 'coverage',
coverageThreshold: {
global: {
branches: 35,
functions: 35,
lines: 45,
statements: 45,
},
// Individual modules that are well-tested
'src/core/schema-stats.ts': {
branches: 65,
functions: 80,
lines: 80,
statements: 75,
},
'src/cli/commands/lint.ts': {
branches: 55,
functions: 70,
lines: 60,
statements: 60,
},
},
setupFilesAfterEnv: ['<rootDir>/tests/simple-setup.ts'],
testTimeout: 10000,
verbose: true,
};