File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
packages/wrangler/src/__tests__/cloudchamber Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 11import { http , HttpResponse } from "msw" ;
22import patchConsole from "patch-console" ;
3+ import { vi } from "vitest" ;
34import { collectCLIOutput } from "../helpers/collect-cli-output" ;
45import { mockAccountId , mockApiToken } from "../helpers/mock-account-id" ;
56import { MOCK_DEPLOYMENTS_COMPLEX } from "../helpers/mock-cloudchamber" ;
@@ -10,6 +11,10 @@ import { runInTempDir } from "../helpers/run-in-tmp";
1011import { runWrangler } from "../helpers/run-wrangler" ;
1112import { mockAccount , setWranglerConfig } from "./utils" ;
1213
14+ // we want to include the banner to make sure it doesn't show up in the output
15+ // when using --json
16+ vi . unmock ( "../wrangler-banner" ) ;
17+
1318describe ( "cloudchamber curl" , ( ) => {
1419 const std = collectCLIOutput ( ) ;
1520 const helpStd = mockConsoleMethods ( ) ;
Original file line number Diff line number Diff line change 11import { http , HttpResponse } from "msw" ;
22import patchConsole from "patch-console" ;
3+ import { vi } from "vitest" ;
34import { mockAccountId , mockApiToken } from "../helpers/mock-account-id" ;
45import { mockConsoleMethods } from "../helpers/mock-console" ;
56import { useMockIsTTY } from "../helpers/mock-istty" ;
@@ -8,6 +9,10 @@ import { runInTempDir } from "../helpers/run-in-tmp";
89import { runWrangler } from "../helpers/run-wrangler" ;
910import { mockAccount , setWranglerConfig } from "./utils" ;
1011
12+ // we want to include the banner to make sure it doesn't show up in the output
13+ // when using --json
14+ vi . unmock ( "../wrangler-banner" ) ;
15+
1116describe ( "cloudchamber image" , ( ) => {
1217 const std = mockConsoleMethods ( ) ;
1318 const { setIsTTY } = useMockIsTTY ( ) ;
You can’t perform that action at this time.
0 commit comments