We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c7849e commit cdcbb45Copy full SHA for cdcbb45
packages/wrangler/src/__tests__/index.test.ts
@@ -4,6 +4,7 @@ import * as path from "node:path";
4
import * as TOML from "@iarna/toml";
5
import { main } from "../index";
6
import { setMock, unsetAllMocks } from "./mock-cfetch";
7
+import { existsSync } from "node:fs";
8
9
jest.mock("../cfetch", () => jest.requireActual("./mock-cfetch"));
10
@@ -99,7 +100,9 @@ describe("wrangler", () => {
99
100
});
101
102
afterEach(async () => {
- await fsp.rm("./wrangler.toml");
103
+ if (existsSync("./wrangler.toml")) {
104
+ await fsp.rm("./wrangler.toml");
105
+ }
106
process.chdir(ogcwd);
107
108
0 commit comments