diff options
Diffstat (limited to 'frontend/src/modules/socketio/index.ts')
-rw-r--r-- | frontend/src/modules/socketio/index.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/frontend/src/modules/socketio/index.ts b/frontend/src/modules/socketio/index.ts index 18934b39a..fe9536bbc 100644 --- a/frontend/src/modules/socketio/index.ts +++ b/frontend/src/modules/socketio/index.ts @@ -1,7 +1,7 @@ import { debounce, forIn, remove, uniq } from "lodash"; import { onlineManager } from "react-query"; import { io, Socket } from "socket.io-client"; -import { Environment, isDevEnv } from "../../utilities"; +import { Environment, isDevEnv, isTestEnv } from "../../utilities"; import { ENSURE, GROUP, LOG } from "../../utilities/console"; import { createDefaultReducer } from "./reducer"; @@ -51,6 +51,10 @@ class SocketIOClient { } initialize() { + if (isTestEnv) { + return; + } + LOG("info", "Initializing Socket.IO client..."); this.reducers.push(...createDefaultReducer()); |