-
Notifications
You must be signed in to change notification settings - Fork 78
/
jest.config.js
34 lines (34 loc) · 1018 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
module.exports = {
// "collectCoverage": true,
testEnvironment: 'jsdom',
coverageDirectory: 'reports',
collectCoverageFrom: ['packages/**/src/**/*.ts', '!packages/**/node_modules/**', '!**/node_modules/**'],
coverageReporters: [
// "clover",
// "html",
'text-summary'
],
coverageThreshold: {
global: {
branches: 80,
functions: 80,
lines: 80,
statements: 80
}
},
moduleFileExtensions: ['js', 'ts'],
modulePaths: ['<rootDir>'],
testRegex: '(/packages/([^/]{1,})/__tests__/.*)\\.test.ts$',
testPathIgnorePatterns: [
'(/packages/board/__tests__/.*)\\.test.ts$',
'(/packages/core/__tests__/.*)\\.test.ts$',
'(/packages/idraw/__tests__/.*)\\.test.ts$',
'(/packages/renderer/__tests__/.*)\\.test.ts$',
'(/packages/types/__tests__/.*)\\.test.ts$'
],
moduleNameMapper: {
'@idraw/util': '<rootDir>/packages/util/src/index.ts'
},
// "testRegex": "(/packages/idraw/__tests__/.*)\\.test.ts$",
setupFiles: ['jest-canvas-mock']
};