-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathjest.config.js
More file actions
32 lines (31 loc) · 804 Bytes
/
jest.config.js
File metadata and controls
32 lines (31 loc) · 804 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
30
31
32
module.exports = {
clearMocks: true,
coverageDirectory: 'coverage',
coverageReporters: ['text', 'clover'],
coverageThreshold: {
global: {
branches: 80,
functions: 80,
lines: 80,
statements: 80,
},
},
globals: {
'ts-jest': {
extends: './babel.config.js',
},
},
moduleFileExtensions: ['ts', 'tsx', 'js'],
modulePathIgnorePatterns: ['dist'],
moduleNameMapper: {
'@react-mailkit/(.+)$': '<rootDir>packages/$1/src',
},
notify: true,
notifyMode: 'always',
roots: ['<rootDir>packages'],
testMatch: ['**/__tests__/*.+(ts|tsx|js)', '**/*.test.+(ts|tsx|js)'],
transform: {
'^.+\\.(ts|tsx)$': 'ts-jest',
},
setupFilesAfterEnv: ['<rootDir>jest/setupTests.ts'],
};