-
Notifications
You must be signed in to change notification settings - Fork 1
/
jest.config.ts
50 lines (49 loc) · 1.02 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
42
43
44
45
46
47
48
49
50
import type { Config } from '@jest/types'
const config: Config.InitialOptions = {
verbose: true,
testEnvironment: 'node',
preset: 'ts-jest',
maxWorkers: 1,
globals: {
'ts-jest': {
'diagnostics': false,
'tsConfig': 'tsconfig.json'
}
},
forceExit: true,
moduleNameMapper: {
'^@gerard2p/mce$': '<rootDir>/src',
'^@gerard2p/mce/(.*)$': '<rootDir>/src/$1',
},
modulePathIgnorePatterns: ['<rootDir>/lib/'],
coverageThreshold: {
global: {
branches: 90,
functions: 90,
lines: 90,
statements: 90,
},
},
testPathIgnorePatterns: [
'templates',
'node_modules',
'coverage',
'lib',
],
coverageDirectory: './coverage',
collectCoverage: true,
collectCoverageFrom: ['src/**/*.ts'],
coveragePathIgnorePatterns: [
'test/',
'src/verbose',
'/node_modules/',
'index.ts',
'src/cli.ts',
'src/commands/build/incremental.ts',
'src/test/tree-maker.ts',
'src/mockable/fs.ts',
'src/spinner/',
],
coverageReporters: ['html', 'json', 'lcov'],
}
export default config