From baea1e0c5f79f8d5d6bbeffb8b270e8ef4458063 Mon Sep 17 00:00:00 2001 From: Josh Gross Date: Thu, 31 Oct 2019 15:01:10 -0400 Subject: [PATCH] Drop all commands from output --- jest.config.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/jest.config.js b/jest.config.js index a8bdc08..42e7e56 100644 --- a/jest.config.js +++ b/jest.config.js @@ -12,11 +12,9 @@ module.exports = { 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 - // Replace any :: with : if (!str.match(/^::/)) { return processStdoutWrite(str, encoding, cb); - } else { - return processStdoutWrite(str.replace(/::/g, ":"), encoding, cb); } -} +} \ No newline at end of file