-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
55 lines (55 loc) · 1.67 KB
/
jest.config.js
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
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
projects: [
// Add configurations for each app or package in your monorepo
{
displayName: 'standard',
testMatch: ['<rootDir>/standard/**/*.spec.ts'],
},
{
displayName: 'adapters',
testMatch: ['<rootDir>/adapters/**/*.spec.ts'],
},
{
displayName: 'packages',
testMatch: ['<rootDir>/packages/**/*.spec.ts'],
},
],
// Optional: If you have any setup files or global configuration, you can specify them here
// setupFiles: [],
// Optional: If you want to ignore specific files or folders in the test run
// testPathIgnorePatterns: [],
// Optional: If you want to collect coverage information during tests
// collectCoverage: true,
// Optional: You can specify specific coverage thresholds
// coverageThreshold: {
// global: {
// branches: 10,
// functions: 10,
// lines: 10,
// statements: -10,
// },
// },
// Optional: You can specify additional reporters for test results
// reporters: [],
// Optional: You can specify a custom resolver for test module dependencies
// moduleNameMapper: {},
// Optional: You can specify custom test environment configuration
// testEnvironmentOptions: {}
collectCoverageFrom: [
'**/*.ts',
'!**/node_modules/**',
'!**/*.d.ts',
'!**/__tests__/**',
'!frontend/**',
'!packages/repositories/**',
'!packages/services/src/**/base/**',
'!adapters/api/src/cert/**',
'!adapters/api/src/controller/**',
'!adapters/api/src/server/**',
'!adapters/database/**',
'!backend/**',
'!packages/services/src/account/mailer/templates/**',
],
};