generated from xt0rted/problem-matcher
-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathjest.config.js
31 lines (28 loc) · 798 Bytes
/
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
/** @type {import("ts-jest").JestConfigWithTsJest} */
export default {
clearMocks: true,
collectCoverage: true,
collectCoverageFrom: [
"**/*.ts",
"!dist/**",
"!lib/**",
"!**/node_modules/**",
],
coverageDirectory: "./coverage/",
moduleFileExtensions: ["js", "ts"],
reporters: ["default", "github-actions"],
testEnvironment: "node",
testMatch: ["**/*.test.ts"],
testRunner: "jest-circus/runner",
transform: {
"^.+\\.ts$": ["ts-jest", { diagnostics: false }],
},
verbose: true,
};
// This will strip :: commands from the log output during test runs
const processStdoutWrite = process.stdout.write.bind(process.stdout);
process.stdout.write = (str, encoding, cb) => {
if (!str.match(/^::/)) {
return processStdoutWrite(str, encoding, cb);
}
};