hub/sagas: don't log to console in tests

This commit is contained in:
David Lechner
2021-12-27 12:38:50 -06:00
parent c9894de95e
commit 57038360f4
+3 -1
View File
@@ -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<HubChecksumMessageAction>(
HubMessageActionType.Checksum,