diff --git a/jest.config.js b/jest.config.js index 563d4cc..42e7e56 100644 --- a/jest.config.js +++ b/jest.config.js @@ -8,4 +8,13 @@ module.exports = { '^.+\\.ts$': 'ts-jest' }, verbose: true +} + +const processStdoutWrite = process.stdout.write.bind(process.stdout) +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); + } } \ No newline at end of file