Skip to content

fix(wrangler): skip banner when using --json flag in wrangler pages deployment commands - #10822

Merged
edmundhung merged 2 commits into
mainfrom
edmundhung/disable-banner-on-json-output
Oct 1, 2025
Merged

edmundhung merged 2 commits into
mainfrom
edmundhung/disable-banner-on-json-output

Conversation

@edmundhung

@edmundhung edmundhung commented Sep 30, 2025 •

Copy link
Copy Markdown
Member

Fixes n/a.


@changeset-bot

changeset-bot Bot commented Sep 30, 2025 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: f2dd2be

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@pkg-pr-new

pkg-pr-new Bot commented Sep 30, 2025 •

Copy link
Copy Markdown
create-cloudflare

npm i https://pkg.pr.new/create-cloudflare@10822

@cloudflare/kv-asset-handler

npm i https://pkg.pr.new/@cloudflare/kv-asset-handler@10822

miniflare

npm i https://pkg.pr.new/miniflare@10822

@cloudflare/pages-shared

npm i https://pkg.pr.new/@cloudflare/pages-shared@10822

@cloudflare/unenv-preset

npm i https://pkg.pr.new/@cloudflare/unenv-preset@10822

@cloudflare/vite-plugin

npm i https://pkg.pr.new/@cloudflare/vite-plugin@10822

@cloudflare/vitest-pool-workers

npm i https://pkg.pr.new/@cloudflare/vitest-pool-workers@10822

@cloudflare/workers-editor-shared

npm i https://pkg.pr.new/@cloudflare/workers-editor-shared@10822

wrangler

npm i https://pkg.pr.new/wrangler@10822

commit: f2dd2be

@edmundhung
edmundhung force-pushed the edmundhung/disable-banner-on-json-output branch from e17a904 to cf4cba9 Compare September 30, 2025 16:05
@edmundhung
edmundhung marked this pull request as ready for review September 30, 2025 16:06
@edmundhung
edmundhung requested review from a team as code owners September 30, 2025 16:06
@edmundhung
edmundhung force-pushed the edmundhung/disable-banner-on-json-output branch from cf4cba9 to e9edc08 Compare September 30, 2025 16:14
@edmundhung edmundhung changed the title fix(wrangler): disable banner on json output fix(wrangler): skip banner when using --json flag in wrangler pages deployment commands Sep 30, 2025
@github-actions

This comment was marked as outdated.

import type { Deployment } from "./../../pages/types";

describe("pages deployment list", () => {
vi.unmock("../../wrangler-banner");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we should unmock print banner across all the tests?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. That's my plan next after all these PRs. It's really tricky to catch this when we have it mocked by default, especially when the command is done by external team.

But it would probably be a huge PR as it will likely impact a fair amount of snapshots test we had.

@github-project-automation github-project-automation Bot moved this from Untriaged to Approved in workers-sdk Oct 1, 2025
@github-actions

This comment was marked as outdated.

@edmundhung
edmundhung merged commit 4c06766 into main Oct 1, 2025
52 of 60 checks passed
@edmundhung
edmundhung deleted the edmundhung/disable-banner-on-json-output branch October 1, 2025 15:05
@github-project-automation github-project-automation Bot moved this from Approved to Done in workers-sdk Oct 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants