From b70777178c8e6a86df1df7951141dd4ca035f5df Mon Sep 17 00:00:00 2001 From: David Lechner Date: Mon, 18 Jul 2022 14:54:44 -0500 Subject: [PATCH] editor/sagas: avoid console noise in tests --- src/editor/sagas.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/editor/sagas.ts b/src/editor/sagas.ts index 7a8b4aae..519bc7e4 100644 --- a/src/editor/sagas.ts +++ b/src/editor/sagas.ts @@ -394,6 +394,11 @@ function* monitorEditors(): Generator { * Runs a web worker with Pyodide so that we can use Jedi for intellisense. */ function* runJedi(): Generator { + // TODO: web workers are not implemented in test environment + if (process.env.NODE_ENV === 'test') { + return; + } + const defer = new Array<() => void>(); try {