-
-
Notifications
You must be signed in to change notification settings - Fork 279
Expand file tree
/
Copy pathjest.config.js
More file actions
28 lines (27 loc) · 668 Bytes
/
jest.config.js
File metadata and controls
28 lines (27 loc) · 668 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
27
28
/* eslint-disable @typescript-eslint/no-var-requires */
const tsConfig = require('./tsconfig.json');
module.exports = {
preset: 'ts-jest',
testEnvironment: 'jsdom',
testEnvironmentOptions: {
// uncomment if needing to test bing provider with jest
// resources: 'usable',
// runScripts: 'dangerously',
},
testMatch: ['**/*.spec.js'],
transform: {
'^.+\\.(t|j)sx?$': [
'ts-jest',
{
tsconfig: {
...tsConfig.compilerOptions,
noEmit: false,
outDir: '.tsCache',
},
},
],
},
automock: false,
setupFiles: ['./jest.setup.js'],
setupFilesAfterEnv: ['./jest.extend.js'],
};