forked from wuespace/telestion-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.js
63 lines (63 loc) · 1.77 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
module.exports = {
rootDir: '.',
coverageReporters: ['json', 'text', 'text-summary', 'lcov'],
projects: [
{
displayName: 'PropTypes',
globals: {
'ts-jest': {
//tsconfig: 'base-configs/tsconfig.spec.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/build/',
'<rootDir>/packages/telestion-client-prop-types/tests/',
'<rootDir>/packages/vertx-event-bus/build/',
'<rootDir>/packages/telestion-client-prop-types/node_modules/@wuespace/vertx-event-bus/build/index.js'
],
testMatch: [
'<rootDir>/packages/telestion-client-prop-types/src/**/*(*.)@(spec|test).[jt]s'
]
},
{
displayName: 'Vert.x Event Bus',
globals: {
'ts-jest': {
tsconfig: 'packages/vertx-event-bus/tsconfig.json'
}
},
preset: 'ts-jest',
testEnvironment: 'node',
collectCoverageFrom: ['<rootDir>/packages/vertx-event-bus/src/**'],
coveragePathIgnorePatterns: [],
testMatch: [
'<rootDir>/packages/vertx-event-bus/src/**/*(*.)@(spec|test).[jt]s'
]
}
// TODO: Uncomment when mock server has jest unit tests
// {
// displayName: 'MockServer',
// globals: {
// "ts-jest": {
// tsconfig: 'packages/vertx-mock-server/tsconfig.json'
// }
// },
// preset: 'ts-jest',
// testEnvironment: 'node',
// collectCoverageFrom: [
// '<rootDir>/packages/vertx-mock-server/src/**'
// ],
// coveragePathIgnorePatterns: [],
// testMatch: [
// '<rootDir>/packages/vertx-mock-server/src/**/*(*.)@(spec|test).[jt]s'
// ]
// }
]
};