-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjest.config.base.js
More file actions
31 lines (30 loc) · 858 Bytes
/
jest.config.base.js
File metadata and controls
31 lines (30 loc) · 858 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
29
30
31
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
roots: ['<rootDir>'],
transform: {
'^.+\\.ts$': 'ts-jest',
'^.+\\.tsx$': 'ts-jest',
},
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.(ts?|tsx?)?$',
moduleFileExtensions: ['js', 'ts', 'tsx', 'json', 'node', 'css', 'pcss'],
coveragePathIgnorePatterns: ['(tests/.*.mock).(|ts?|tsx?)$'],
verbose: true,
testPathIgnorePatterns: ['/__snapshots__/', '/.cache/', '/lib/', '/dist/'],
collectCoverage: false,
collectCoverageFrom: ['**/*.{ts,tsx}', '!**/*.d.ts', '!<rootDir>/dist/'],
snapshotSerializers: ['jest-emotion'],
modulePathIgnorePatterns: [
'/__snapshots__/',
'dummy',
'scripts',
'docs',
'__tests__/lib/',
],
globals: {
'process.env.__DEV__': true,
'process.env.__PROD__': false,
'process.env.__BROWSER__': false,
'process.env.__SERVER__': false,
},
};