-
Notifications
You must be signed in to change notification settings - Fork 1
/
jest.config.js
70 lines (70 loc) · 1.98 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
module.exports = {
rootDir: '.',
coverageReporters: ['json', 'text', 'text-summary', 'lcov'],
projects: [
{
displayName: 'Telestion Client PropTypes',
transform: {
'^.+\\.tsx?$': [
'ts-jest',
{
tsconfig: 'packages/telestion-client-prop-types/tsconfig.json'
}
]
},
preset: 'ts-jest',
testEnvironment: 'node',
collectCoverageFrom: [
'<rootDir>/packages/telestion-client-prop-types/src/**'
],
coveragePathIgnorePatterns: [
'<rootDir>/node_modules/',
'<rootDir>/packages/telestion-client-prop-types/node_modules/',
'<rootDir>/packages/telestion-client-prop-types/dist/',
'<rootDir>/packages/telestion-client-prop-types/tests/',
'<rootDir>/packages/vertx-event-bus/dist/',
'<rootDir>/packages/telestion-client-prop-types/node_modules/@wuespace/vertx-event-bus/dist/index.js'
],
testMatch: [
'<rootDir>/packages/telestion-client-prop-types/src/**/*(*.)@(spec|test).[jt]s'
]
},
{
displayName: 'Vert.x Event Bus',
transform: {
'^.+\\.tsx?$': [
'ts-jest',
{
tsconfig: 'packages/vertx-event-bus/tsconfig.json'
}
]
},
preset: 'ts-jest',
testEnvironment: 'node',
collectCoverageFrom: ['<rootDir>/packages/vertx-event-bus/src/**'],
coveragePathIgnorePatterns: ['<rootdir>/packages/vertx-event-bus/dist'],
testMatch: [
'<rootDir>/packages/vertx-event-bus/src/**/*(*.)@(spec|test).[jt]s'
]
}
// TODO: Uncomment when mock server has jest unit tests
// {
// displayName: 'MockServer',
// transform: {
// '^.+\\.tsx?$': [
// 'ts-jest',
// {
// tsconfig: 'packages/vertx-mock-server/tsconfig.json'
// }
// ]
// },
// preset: 'ts-jest',
// testEnvironment: 'node',
// collectCoverageFrom: ['<rootDir>/packages/vertx-mock-server/src/**'],
// coveragePathIgnorePatterns: ['<rootDir>/packages/vertx-mock-server/dist'],
// testMatch: [
// '<rootDir>/packages/vertx-mock-server/src/**/*(*.)@(spec|test).[jt]s'
// ]
// }
]
};