-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
56 lines (56 loc) · 2.05 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
module.exports = {
projects: [
{
displayName: 'production-app',
testMatch: ['<rootDir>/test/integration/production/**/*.test.[jt]s?(x)'],
setupFilesAfterEnv: [
'<rootDir>/test/integration/production/jest/setup.js',
],
globalSetup: '<rootDir>/test/integration/production/jest/global-setup.js',
globalTeardown:
'<rootDir>/test/integration/production/jest/global-teardown.js',
},
{
displayName: 'development-app',
testMatch: ['<rootDir>/test/integration/development/**/*.test.[jt]s?(x)'],
setupFilesAfterEnv: [
'<rootDir>/test/integration/development/jest/setup.js',
],
globalSetup:
'<rootDir>/test/integration/development/jest/global-setup.js',
globalTeardown:
'<rootDir>/test/integration/development/jest/global-teardown.js',
},
{
displayName: 'react-18-app',
testMatch: ['<rootDir>/test/integration/react-18/**/*.test.[jt]s?(x)'],
setupFilesAfterEnv: ['<rootDir>/test/integration/react-18/jest/setup.js'],
globalSetup: '<rootDir>/test/integration/react-18/jest/global-setup.js',
globalTeardown:
'<rootDir>/test/integration/react-18/jest/global-teardown.js',
},
{
displayName: 'typescript-app',
testMatch: ['<rootDir>/test/integration/typescript/**/*.test.[jt]s?(x)'],
setupFilesAfterEnv: [
'<rootDir>/test/integration/typescript/jest/setup.js',
],
globalSetup: '<rootDir>/test/integration/typescript/jest/global-setup.js',
globalTeardown:
'<rootDir>/test/integration/typescript/jest/global-teardown.js',
},
{
displayName: 'async-modules-app',
testMatch: [
'<rootDir>/test/integration/async-modules/**/*.test.[jt]s?(x)',
],
setupFilesAfterEnv: [
'<rootDir>/test/integration/async-modules/jest/setup.js',
],
globalSetup:
'<rootDir>/test/integration/async-modules/jest/global-setup.js',
globalTeardown:
'<rootDir>/test/integration/async-modules/jest/global-teardown.js',
},
],
}