forked from Yoctol/bottender
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
35 lines (35 loc) · 858 Bytes
/
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
module.exports = {
testEnvironment: 'node',
preset: 'ts-jest',
moduleFileExtensions: ['js', 'json', 'ts'],
testPathIgnorePatterns: [
'/node_modules/',
'/examples/',
'/dist/',
'src/cli/providers/sh/test.js',
],
coverageDirectory: './coverage/',
transformIgnorePatterns: ['/node_modules/'],
testMatch: ['**/__tests__/*.ts'],
timers: 'fake',
resetMocks: true,
globals: {
'ts-jest': {
tsConfig: '<rootDir>/tsconfig.test.json',
diagnostics: false,
},
},
collectCoverageFrom: ['packages/*/src/**/*.ts'],
coveragePathIgnorePatterns: ['/node_modules/', '/__tests__/'],
coverageThreshold: {
global: {
branches: 75,
functions: 75,
lines: 75,
statements: 75,
},
},
setupFiles: ['./test/setupJest.js'],
reporters: ['default', 'jest-junit'],
resetModules: true,
};