-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
54 lines (42 loc) · 1.02 KB
/
Copy pathjest.config.js
File metadata and controls
54 lines (42 loc) · 1.02 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
/**
* Jest configuration for NANO MCP Server
*/
module.exports = {
// Test environment
testEnvironment: 'node',
// Test file patterns
testMatch: [
'**/tests/**/*.test.js',
'**/?(*.)+(spec|test).js'
],
// Coverage collection
collectCoverageFrom: [
'utils/**/*.js',
'src/**/*.js',
'!src/index.js',
'!**/node_modules/**'
],
// Coverage thresholds
coverageThresholds: {
global: {
branches: 70,
functions: 70,
lines: 70,
statements: 70
}
},
// Verbose output
verbose: true,
// Timeout for tests (30 seconds to account for crypto operations)
testTimeout: 30000,
// Clear mocks between tests
clearMocks: true,
// Coverage directory
coverageDirectory: 'coverage',
// Setup files
setupFilesAfterEnv: [],
// Module paths
moduleDirectories: ['node_modules', 'src', 'utils'],
// Transform (none needed for plain JS)
transform: {}
};