forked from cursosdevfull/NodeJS_Group08
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
35 lines (35 loc) · 812 Bytes
/
Copy pathjest.config.js
File metadata and controls
35 lines (35 loc) · 812 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
module.exports = {
testEnvironment: "node",
bail: true,
verbose: true,
setupFilesAfterEnv: ["jest-extended"],
reporters: [
`default`,
[
`jest-html-reporters`,
{
publicPath: `reports`,
filename: `test.v2.html`,
},
],
[
`./node_modules/jest-html-reporter`,
{
pageTitle: `Test API`,
outputPath: `reports/test.v1.html`,
},
],
],
collectCoverage: true,
collectCoverageFrom: [
"src/**/*.ts",
"!**/node_modules/**",
"!src/**/*.entity.ts",
],
coverageReporters: [`json`, `text`, `html`, "lcov"],
coverageDirectory: `reports/coverage`,
testPathIgnorePatterns: [`/node_modules/`],
testResultsProcessor: "jest-sonar-reporter",
testMatch: ["<rootDir>/test/**/*.spec.ts"],
preset: `ts-jest`,
};