-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.ts
41 lines (39 loc) · 1.08 KB
/
jest.config.ts
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
import type { Config } from '@jest/types';
import { sharedJestConfig } from './shared-jest.config';
// Sync object
const config: Config.InitialOptions = {
verbose: true,
testMatch: [
'**/*.spec.ts'
],
testPathIgnorePatterns: [
'<rootDir>/node_modules/',
'<rootDir>/src/client/',
'<rootDir>/cypress/'
],
coveragePathIgnorePatterns: [
'<rootDir>/node_modules/',
'<rootDir>/src/client/',
'<rootDir>/cypress/'
],
transform: {
'^.+\\.tsx?$': 'ts-jest'
},
collectCoverageFrom: [
'**/*.ts',
'!**/node_modules/**',
'!**/*rc.*',
'!**/*.config.*',
'!**/*.spec.ts',
'!**/db/migrations/**',
'!**/src/client/**',
'!**/src/shared/lib/**', // remove at some point?
'!**/src/api/decorators/**', // remove at some point
'!**/src/api/handlers/**', // remove at some point
'!**/src/db/**', // remove at some point
'!**/src/services/organization.service.ts' // remove at some point
],
coverageReporters: sharedJestConfig.coverageReporters,
coverageThreshold: sharedJestConfig.coverageThreshold
};
export default config;