-
Notifications
You must be signed in to change notification settings - Fork 23
/
jest.config.js
40 lines (38 loc) · 1.16 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
globalThis.ngJest = {
skipNgcc: true,
tsconfig: '<rootDir>/projects/opentelemetry-interceptor/tsconfig.spec.json', // this is the project root tsconfig
};
module.exports = {
verbose: false,
preset: 'jest-preset-angular',
roots: ['<rootDir>/projects/opentelemetry-interceptor/src'],
coverageReporters: ['lcov', ['text', { skipFull: true }]],
reporters: [
['github-actions', { silent: false }],
'summary',
["jest-html-reporters", {
publicPath: "./jest-report",
filename: "report.html",
}],
['jest-junit', {
outputDirectory: '<rootDir>/jest-report',
outputName: "jest-junit.xml"
}]
],
setupFilesAfterEnv: [
'<rootDir>/projects/opentelemetry-interceptor/setupJest.ts'
],
globalSetup: 'jest-preset-angular/global-setup',
testPathIgnorePatterns: [
'<rootDir>/node_modules/',
'<rootDir>/dist/opentelemetry-interceptor/',
'<rootDir>/projects/instrumentation-example/',
'<rootDir>/projects/interceptor-example/',
'<rootDir>/cypress/'
],
transform: {
'^.+\\.tsx?$': ['jest-preset-angular', {
tsconfig: '<rootDir>/projects/opentelemetry-interceptor/tsconfig.spec.json',
}]
}
};