-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjest.config.js
More file actions
25 lines (25 loc) · 763 Bytes
/
Copy pathjest.config.js
File metadata and controls
25 lines (25 loc) · 763 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
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
module.exports = {
preset: "ts-jest",
collectCoverage: true,
coverageDirectory: "coverage",
coverageReporters: ["text", "text-summary", "lcov", "cobertura"],
collectCoverageFrom: ["src/**/*.ts", "!**/node_modules/**"],
reporters: [
"default",
[
// Needed for CI workflow Github Action Job Summary.
// See https://github.com/dorny/test-reporter#supported-formats
"jest-junit",
{
outputDirectory: "coverage",
ancestorSeparator: " › ",
uniqueOutputName: "false",
suiteNameTemplate: "{filepath}",
classNameTemplate: "{classname}",
titleTemplate: "{title}",
},
],
],
testEnvironment: "node",
};