-
Notifications
You must be signed in to change notification settings - Fork 1
/
jest.config.unit.js
40 lines (39 loc) · 1.06 KB
/
jest.config.unit.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
35
36
37
38
39
40
//export default {
// eslint-disable-next-line no-undef
module.exports = {
'testMatch': [
'**/?(*.)+(unit).+(ts)'
],
'transform': {
'^.+\\.(ts|tsx)$': 'ts-jest'
},
'reporters': [
'default',
['jest-html-reporters', {
'publicPath': './coverage',
'filename': 'report.html',
'expand': true,
}],
],
globals: {
'ts-jest': {
tsconfig: {
'composite': true,
'module': 'commonjs',
'moduleResolution': 'node',
'declaration': true,
'noImplicitAny': false,
'removeComments': true,
'noLib': false,
'emitDecoratorMetadata': true,
'experimentalDecorators': true,
'esModuleInterop': true,
'skipLibCheck': true,
'target': 'es2018',
'sourceMap': true,
'lib': ['es2018', 'dom']
}
},
},
setupFiles: ['<rootDir>/jestsetup.js'],
}