forked from jupyterlab/jupyterlab-telemetry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.js
35 lines (32 loc) · 796 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
35
const jestJupyterLab = require('@jupyterlab/testutils/lib/jest-config');
const jlabConfig = jestJupyterLab('jupyterlab-telemetry', __dirname);
const {
moduleFileExtensions,
moduleNameMapper,
preset,
setupFilesAfterEnv,
setupFiles,
testPathIgnorePatterns,
transform
} = jlabConfig;
module.exports = {
coverageDirectory: 'coverage',
moduleFileExtensions,
moduleNameMapper,
preset,
setupFilesAfterEnv,
setupFiles,
testPathIgnorePatterns,
transform,
automock: false,
collectCoverageFrom: ['src/**.ts', '!src/*.d.ts'],
coverageReporters: ['lcov', 'text'],
globals: {
'ts-jest': {
tsconfig: `./tsconfig.json`
}
},
reporters: ['default'],
testRegex: 'src/.*/.*.spec.ts$',
transformIgnorePatterns: ['/node_modules/(?!(@?jupyterlab.*)/)']
};