-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
24 lines (18 loc) · 755 Bytes
/
jest.config.js
File metadata and controls
24 lines (18 loc) · 755 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
import coverageOptions from './mcr.config.unit.js';
export default {
testMatch: [
'**/test/unit/*.test.js'
],
// Enable coverage
collectCoverage: true,
// Recommended to use `v8` to support the generation of native v8 coverage reports.
coverageProvider: 'v8',
// Monocart can also support all coverage reports, so there is no need to set up reports here.
coverageReporters: ['none'],
reporters: [
// If custom reporters are specified, the default Jest reporter will be overridden. If you wish to keep it, 'default' must be passed as a reporters name:
'default',
// Monocart custom reporter to generate coverage reports.
['jest-monocart-coverage', coverageOptions]
]
};