Skip to content

Commit 88e5e12

Browse files
committed
chore(tests): should fix node20 issue
1 parent 0863860 commit 88e5e12

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

features/support/hooks.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ type HookWorld = IWorld & {
1919
};
2020

2121
Before<HookWorld>(async function () {
22-
console.log(this);
2322
await clean(this);
2423
});
2524

test/setup.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ if (typeof global.XMLHttpRequest === "undefined") {
99
}
1010

1111
// Define a writable global binding for WebSocket when Node does not provide one
12-
if (typeof WebSocket === "undefined") {
13-
/* eslint-disable no-var */
14-
// eslint-disable-next-line vars-on-top
15-
var WebSocket = undefined; // creates the global binding
16-
/* eslint-enable no-var */
12+
if (typeof global.WebSocket === "undefined") {
13+
global.WebSocket = undefined;
1714
}

0 commit comments

Comments
 (0)