cache/jest.config.js
Bariscankibarcekici 4472a36ed8 Revert "Merge branch 'actions:main' into fix-golang-windows-example"
This reverts commit 341e6d75d9, reversing
changes made to 447f0fd1d3.
2022-06-15 07:38:57 +03:00

24 lines
731 B
JavaScript

require("nock").disableNetConnect();
module.exports = {
clearMocks: true,
moduleFileExtensions: ["js", "ts"],
testEnvironment: "node",
testMatch: ["**/*.test.ts"],
testRunner: "jest-circus/runner",
transform: {
"^.+\\.ts$": "ts-jest"
},
verbose: true
};
const processStdoutWrite = process.stdout.write.bind(process.stdout);
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
process.stdout.write = (str, encoding, cb) => {
// Core library will directly call process.stdout.write for commands
// We don't want :: commands to be executed by the runner during tests
if (!str.match(/^::/)) {
return processStdoutWrite(str, encoding, cb);
}
};