You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Jest is not available here, so we have to reverse engineer
130
143
// the setTimeout function, see https://github.com/facebook/jest/blob/ffe2352c781703b427fab10777043fb76d0d4267/packages/jest-runtime/src/index.ts#L2331
131
144
setTimeout(timeout: number){
@@ -134,7 +147,7 @@ export class PuppeteerEnvironment extends NodeEnvironment {
134
147
135
148
asyncsetup(): Promise<void>{
136
149
constconfig=awaitreadConfig();
137
-
constglobal=this.globalasunknownasStrictGlobal;
150
+
constglobal=this.global;
138
151
global.puppeteerConfig=config;
139
152
140
153
global.jestPuppeteer={
@@ -161,7 +174,6 @@ export class PuppeteerEnvironment extends NodeEnvironment {
0 commit comments