From 57038360f4a06acf44ab0b36c05c04c38f39cfe8 Mon Sep 17 00:00:00 2001 From: David Lechner Date: Sat, 18 Dec 2021 12:13:32 -0600 Subject: [PATCH] hub/sagas: don't log to console in tests --- src/hub/sagas.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/hub/sagas.ts b/src/hub/sagas.ts index 878e02d3..f1fdae24 100644 --- a/src/hub/sagas.ts +++ b/src/hub/sagas.ts @@ -91,7 +91,9 @@ function* downloadAndRun(_action: HubDownloadAndRunAction): Generator { yield* put(didStartDownload()); // TODO: show compiled size in UI? - console.log(`Downloading ${mpy.data.byteLength} bytes`); + if (process.env.NODE_ENV !== 'test') { + console.log(`Downloading ${mpy.data.byteLength} bytes`); + } const checksumChannel = yield* actionChannel( HubMessageActionType.Checksum,