-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
37 lines (37 loc) · 880 Bytes
/
jest.config.js
File metadata and controls
37 lines (37 loc) · 880 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
32
33
34
35
36
37
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
roots: ['<rootDir>/src'],
// Retry flaky MC integration tests (depend on live server)
projects: [
{
displayName: 'mc-integration',
preset: 'ts-jest',
testEnvironment: 'node',
roots: ['<rootDir>/src'],
testMatch: [
'**/__tests__/mc-integration.test.ts',
'**/__tests__/mc-integration/**/*.test.ts',
],
testEnvironmentOptions: {},
retryTimes: 2,
globals: {
'ts-jest': {
diagnostics: false,
},
},
},
{
displayName: 'unit',
preset: 'ts-jest',
testEnvironment: 'node',
roots: ['<rootDir>/src'],
testPathIgnorePatterns: ['mc-integration.test.ts', 'mc-integration/'],
globals: {
'ts-jest': {
diagnostics: false,
},
},
},
],
};