forked from jupyterlab/pull-requests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.js
34 lines (31 loc) · 833 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
const jestJupyterLab = require('@jupyterlab/testutils/lib/jest-config');
const jlabConfig = jestJupyterLab('@jupyterlab/pullrequests', __dirname);
const {
coverageDirectory,
moduleFileExtensions,
moduleNameMapper,
preset,
setupFilesAfterEnv,
setupFiles,
testPathIgnorePatterns,
transform
} = jlabConfig;
module.exports = {
coverageDirectory,
moduleFileExtensions,
moduleNameMapper: {...moduleNameMapper, "monaco-editor": "<rootDir>/node_modules/react-monaco-editor"},
preset,
setupFilesAfterEnv,
setupFiles,
testPathIgnorePatterns,
transform,
automock: false,
testRegex: 'src/tests/.*.spec.ts[x]?$',
transformIgnorePatterns: ['/node_modules/(?!(@?jupyterlab.*)/)'],
setupFiles: ['<rootDir>/setupJest.js'],
globals: {
'ts-jest': {
tsconfig: '<rootDir>/tsconfig.json'
}
}
};