Fix E2E tests
This commit is contained in:
parent
29ff601545
commit
f8b0501eea
4 changed files with 5 additions and 30 deletions
|
|
@ -274,9 +274,8 @@ export class Syncer {
|
|||
typeof globalThis !== "undefined" &&
|
||||
typeof globalThis.WebSocket === "undefined"
|
||||
) {
|
||||
// polyfill for WebSocket in Node.js
|
||||
// eslint-disable-next-line
|
||||
globalThis.WebSocket = require("ws");
|
||||
globalThis.WebSocket = require("ws"); // polyfill for WebSocket in Node.js
|
||||
}
|
||||
|
||||
this.applyRemoteChangesWebSocket = new WebSocket(wsUri);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue