Skip to content

Commit d162ddc

Browse files
test: don't render logs to the console in output.test.ts (#11357)
1 parent 4a158e9 commit d162ddc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/wrangler/src/__tests__/output.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@ import { readdirSync, readFileSync } from "node:fs";
33
import { join } from "node:path";
44
import { FatalError } from "@cloudflare/workers-utils";
55
import { clearOutputFilePath, writeOutput } from "../output";
6+
import { mockConsoleMethods } from "./helpers/mock-console";
67
import { runInTempDir } from "./helpers/run-in-tmp";
78
import { runWrangler } from "./helpers/run-wrangler";
89
import type { OutputEntry } from "../output";
910

1011
describe("writeOutput()", () => {
1112
runInTempDir({ homedir: "home" });
1213
afterEach(clearOutputFilePath);
14+
mockConsoleMethods();
1315

1416
it("should do nothing with no env vars set", () => {
1517
vi.stubEnv("WRANGLER_OUTPUT_FILE_DIRECTORY", "");

0 commit comments

Comments
 (0)