-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjest.config.js
More file actions
26 lines (25 loc) · 712 Bytes
/
jest.config.js
File metadata and controls
26 lines (25 loc) · 712 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
module.exports = {
roots: ['<rootDir>/src'],
transform: {
'^.+\\.tsx?$': 'ts-jest'
},
testRegex: '(//.*|(\\.|/)(test|spec))\\.tsx?$',
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
modulePaths: ['<rootDir>/dist'],
coverageReporters: ['json', 'html']
// collectCoverage: true,
// coverageDirectory: 'reports',
// coverageReporters: [['lcov', { projectRoot: '../../' }]],
// testResultsProcessor: 'jest-sonar-reporter',
// reporters: [
// 'default',
// [
// '../../node_modules/jest-html-reporter',
// {
// pageTitle: 'Test Report',
// includeFailureMsg: true,
// includeConsoleLog: true,
// },
// ],
// ],
};