Skip to content

Commit df793f2

Browse files
hide unwanted logging from cloudchamber unit test output (#10835)
1 parent 59e8ef0 commit df793f2

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

packages/wrangler/src/__tests__/cloudchamber/apply.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
import { http, HttpResponse } from "msw";
88
import patchConsole from "patch-console";
99
import { mockAccountId, mockApiToken } from "../helpers/mock-account-id";
10-
import { mockCLIOutput } from "../helpers/mock-console";
10+
import { mockCLIOutput, mockConsoleMethods } from "../helpers/mock-console";
1111
import { useMockIsTTY } from "../helpers/mock-istty";
1212
import { msw } from "../helpers/msw";
1313
import { runInTempDir } from "../helpers/run-in-tmp";
@@ -83,6 +83,7 @@ function mockModifyApplication(
8383
describe("cloudchamber apply", () => {
8484
const { setIsTTY } = useMockIsTTY();
8585
const std = mockCLIOutput();
86+
mockConsoleMethods();
8687

8788
mockAccountId();
8889
mockApiToken();

packages/wrangler/src/__tests__/cloudchamber/build.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import {
99
} from "@cloudflare/containers-shared";
1010
import { UserError } from "../../errors";
1111
import { mockAccountId, mockApiToken } from "../helpers/mock-account-id";
12+
import { mockConsoleMethods } from "../helpers/mock-console";
1213
import { runInTempDir } from "../helpers/run-in-tmp";
1314
import { runWrangler } from "../helpers/run-wrangler";
1415
import { mockAccountV4 as mockAccount } from "./utils";
@@ -31,6 +32,7 @@ describe("buildAndMaybePush", () => {
3132
runInTempDir();
3233
mockApiToken();
3334
mockAccountId();
35+
mockConsoleMethods();
3436
beforeEach(() => {
3537
vi.clearAllMocks();
3638
vi.mocked(dockerImageInspect)

0 commit comments

Comments
 (0)