Skip to content

Commit

Permalink
fix: avoid creating screenshots directory
Browse files Browse the repository at this point in the history
Closes #521
  • Loading branch information
gregberge committed Mar 7, 2023
1 parent 573c3d4 commit d9e58fe
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/jest-environment-puppeteer/src/env.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import { join } from "node:path";
import NodeEnvironment from "jest-environment-node";
import { mkdir } from "node:fs/promises";
import { readConfig } from "./config";
import { blockStdin } from "./stdin";
import { connectBrowserFromWorker } from "./browsers";
Expand Down Expand Up @@ -171,10 +169,7 @@ export class PuppeteerEnvironment extends NodeEnvironment {
},
};

await Promise.all([
initAll(global),
mkdir(join(process.cwd(), "screenshots"), { recursive: true }),
]);
await initAll(global);
}

async teardown() {
Expand Down

0 comments on commit d9e58fe

Please sign in to comment.