-
Notifications
You must be signed in to change notification settings - Fork 98
/
Copy pathjest.config.js
39 lines (37 loc) · 925 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
36
37
38
39
process.env.TZ = 'UTC';
process.env.NODE_OPTIONS = [
process.env.NODE_OPTIONS,
// https://jestjs.io/docs/ecmascript-modules
`--experimental-vm-modules`,
]
.filter(Boolean)
.join(' ');
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
setupFilesAfterEnv: ['./__tests__/setup.ts'],
globalTeardown: './__tests__/teardown.ts',
testPathIgnorePatterns: [
'<rootDir>/__tests__/setup.ts',
'<rootDir>/__tests__/teardown.ts',
'<rootDir>/__tests__/helpers.ts',
'<rootDir>/__tests__/fixture/',
],
snapshotFormat: {
escapeString: true,
printBasicPrototype: true,
},
workerIdleMemoryLimit: '2048MB',
transform: {
'^.+\\.tsx?$': [
'ts-jest',
{
// do not report type checking errors when running tests
// those are visible on build and inside code editor
diagnostics: {
exclude: ['**'],
},
},
],
},
};