forked from veridatum-labs/earnproof-contracts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
59 lines (52 loc) · 1.29 KB
/
Copy pathjest.config.js
File metadata and controls
59 lines (52 loc) · 1.29 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
/**
* Jest configuration for EarnProof contract bindings tests
*
* Runs TypeScript and JavaScript tests in artifacts/bindings/__tests__/
*/
module.exports = {
displayName: 'bindings',
testEnvironment: 'node',
roots: ['<rootDir>/artifacts/bindings'],
testMatch: ['**/__tests__/**/*.test.ts'],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
transform: {
'^.+\\.tsx?$': [
'ts-jest',
{
tsconfig: {
target: 'ES2020',
module: 'commonjs',
lib: ['ES2020'],
declaration: false,
strict: true,
esModuleInterop: true,
skipLibCheck: true,
forceConsistentCasingInFileNames: true,
},
},
],
},
collectCoverageFrom: [
'artifacts/bindings/**/*.ts',
'!artifacts/bindings/**/*.test.ts',
'!artifacts/bindings/__tests__/**',
'!artifacts/bindings/index.ts', // Re-export file
],
coveragePathIgnorePatterns: [
'/node_modules/',
'__tests__',
],
collectCoverage: false, // Enable with --coverage flag
coverageThreshold: {
global: {
branches: 80,
functions: 80,
lines: 80,
statements: 80,
},
},
// Quiet mode for cleaner output
verbose: true,
// Timeout for integration tests
testTimeout: 30000,
};