File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 3
3
// ensuring that we're logged in before we run any tests
4
4
import { chromium } from "playwright"
5
5
import { CODE_SERVER_ADDRESS , PASSWORD } from "./constants"
6
+ import * as wtfnode from "./wtfnode"
6
7
7
8
module . exports = async ( ) => {
8
9
console . log ( "🚨 Running Global Setup for Jest Tests" )
@@ -11,6 +12,8 @@ module.exports = async () => {
11
12
const context = await browser . newContext ( )
12
13
const page = await context . newPage ( )
13
14
15
+ wtfnode . setup ( )
16
+
14
17
await page . goto ( CODE_SERVER_ADDRESS , { waitUntil : "domcontentloaded" } )
15
18
// Type in password
16
19
await page . fill ( ".password" , PASSWORD )
Original file line number Diff line number Diff line change @@ -6,11 +6,8 @@ import * as tls from "tls"
6
6
import { Emitter } from "../src/common/emitter"
7
7
import { SocketProxyProvider } from "../src/node/socket"
8
8
import { generateCertificate , tmpdir } from "../src/node/util"
9
- import * as wtfnode from "./wtfnode"
10
9
11
10
describe ( "SocketProxyProvider" , ( ) => {
12
- wtfnode . setup ( )
13
-
14
11
const provider = new SocketProxyProvider ( )
15
12
16
13
const onServerError = new Emitter < { event : string ; error : Error } > ( )
You can’t perform that action at this time.
0 commit comments