mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-12 01:23:52 +00:00
hub/sagas: don't log to console in tests
This commit is contained in:
+3
-1
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user