-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathjest.config.js
More file actions
29 lines (29 loc) · 833 Bytes
/
jest.config.js
File metadata and controls
29 lines (29 loc) · 833 Bytes
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
module.exports = {
verbose: true,
rootDir: './',
roots: ['<rootDir>/src/', '<rootDir>/test/'],
// preset: 'ts-jest',
moduleNameMapper: {},
transform: {
'^.+\\.ts$': ['ts-jest', {
diagnostics: false,
}],
},
testEnvironment: 'node',
testRunner: 'jest-circus/runner',
testRegex: '/test/(?!testHelpers|\\.eslintrc).*\\.(ts|js)$',
setupFilesAfterEnv: [],
moduleFileExtensions: ['ts', 'js'],
globalSetup: '<rootDir>/tools/check-db-connection.ts',
coveragePathIgnorePatterns: ['/node_modules/'],
coverageThreshold: {
global: {
branches: 85,
functions: 85,
lines: 90,
statements: 90,
},
},
collectCoverageFrom: ['src/**/*.{js,ts}'],
coverageDirectory: './reports/coverage',
};