We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 573c3d4 commit d9e58feCopy full SHA for d9e58fe
packages/jest-environment-puppeteer/src/env.ts
@@ -1,6 +1,4 @@
1
-import { join } from "node:path";
2
import NodeEnvironment from "jest-environment-node";
3
-import { mkdir } from "node:fs/promises";
4
import { readConfig } from "./config";
5
import { blockStdin } from "./stdin";
6
import { connectBrowserFromWorker } from "./browsers";
@@ -171,10 +169,7 @@ export class PuppeteerEnvironment extends NodeEnvironment {
171
169
},
172
170
};
173
174
- await Promise.all([
175
- initAll(global),
176
- mkdir(join(process.cwd(), "screenshots"), { recursive: true }),
177
- ]);
+ await initAll(global);
178
}
179
180
async teardown() {
0 commit comments