From c4991577f3611a686b87e615fd2fa0cf8e26e354 Mon Sep 17 00:00:00 2001 From: Jamie King Date: Mon, 1 Apr 2024 11:44:04 -0700 Subject: [PATCH] test(integration): only send logs to stdout on debug runs --- __tests__/integration/helpers/testRunner.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/__tests__/integration/helpers/testRunner.js b/__tests__/integration/helpers/testRunner.js index 30ad916ae..2e68cc4a5 100644 --- a/__tests__/integration/helpers/testRunner.js +++ b/__tests__/integration/helpers/testRunner.js @@ -94,8 +94,9 @@ const setUpTestRunner = async ({ logWatcherDuplex.on('close', () => tail.kill()); })); - // uncomment this line in order to view full logs for debugging - logWatcherDuplex.pipe(process.stdout); + if (process.env.RUNNER_DEBUG) { + logWatcherDuplex.pipe(process.stdout); + } try { await Promise.all([