-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
28 lines (28 loc) · 645 Bytes
/
jest.config.js
File metadata and controls
28 lines (28 loc) · 645 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
module.exports = {
clearMocks: true,
moduleFileExtensions: ['js', 'ts'],
testMatch: ['**/*.test.ts'],
transform: {
'^.+\\.ts$': 'ts-jest',
},
setupFilesAfterEnv: ['<rootDir>/__tests__/setup.ts'],
collectCoverageFrom: ['src/**/*.ts'],
coveragePathIgnorePatterns: [
'src/cli.ts',
'src/types.d.ts',
'src/index.ts',
'src/create-comment.ts',
'src/changed-files.ts',
],
coverageReporters: [
// 'clover',
// 'json',
'html',
'json-summary',
'text',
'text-summary',
// 'lcov',
],
reporters: ['default', ['jest-junit', { outputDirectory: 'coverage' }]],
verbose: true,
}