diff --git a/test/globalSetup.ts b/test/globalSetup.ts index 8a9746884..a3cd485eb 100644 --- a/test/globalSetup.ts +++ b/test/globalSetup.ts @@ -3,6 +3,7 @@ // ensuring that we're logged in before we run any tests import { chromium } from "playwright" import { CODE_SERVER_ADDRESS, PASSWORD } from "./constants" +import * as wtfnode from "./wtfnode" module.exports = async () => { console.log("🚨 Running Global Setup for Jest Tests") @@ -11,6 +12,8 @@ module.exports = async () => { const context = await browser.newContext() const page = await context.newPage() + wtfnode.setup() + await page.goto(CODE_SERVER_ADDRESS, { waitUntil: "domcontentloaded" }) // Type in password await page.fill(".password", PASSWORD) diff --git a/test/socket.test.ts b/test/socket.test.ts index aadf86b40..e614e94db 100644 --- a/test/socket.test.ts +++ b/test/socket.test.ts @@ -6,11 +6,8 @@ import * as tls from "tls" import { Emitter } from "../src/common/emitter" import { SocketProxyProvider } from "../src/node/socket" import { generateCertificate, tmpdir } from "../src/node/util" -import * as wtfnode from "./wtfnode" describe("SocketProxyProvider", () => { - wtfnode.setup() - const provider = new SocketProxyProvider() const onServerError = new Emitter<{ event: string; error: Error }>()