Skip to content

test(cli): count Switch's fourth theme target - #5452

Merged
cixzhang merged 1 commit into
mainfrom
fix-switch-label-target-count
Aug 24, 2026
Merged

cixzhang merged 1 commit into
mainfrom
fix-switch-label-target-count

Conversation

@cixzhang

Copy link
Copy Markdown
Contributor

main is red and has been since #5183 landed.

That PR gave Switch a switch-label theme target — correctly, and it ships — but two CLI tests count theme targets and still assert three:

  • packages/cli/api/theme/targets/targets.test.mjs:34 — the key list
  • packages/cli/clients/cli/commands/theme-targets.behavior.test.mjs:22 — /3 across 1 component/

Both fail on origin/main at cd1a2daa59a with no other change, so every open PR inherits them: test is red on the merge and auto-merge cannot fire anywhere.

Expectations only. Nothing about the target, the component or the CLI changes.

vitest run packages/cli/api/theme/targets packages/cli/clients/cli/commands/theme-targets.behavior.test.mjs — 10 pass.

#5183 gave Switch a `switch-label` target and left the two CLI tests that
count targets asserting three. Both have been red on main since it landed,
which blocks every open PR.

Expectations only — the target itself is correct and shipped.
@vercel

vercel Bot commented Aug 24, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
astryx Ready Ready Preview Aug 24, 2026 11:43pm

Request Review

@cixzhang
cixzhang requested a review from josephfarina as a code owner August 24, 2026 23:38
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Aug 24, 2026
@cixzhang
cixzhang enabled auto-merge (squash) August 24, 2026 23:38
@cixzhang
cixzhang merged commit c4e6328 into main Aug 24, 2026
19 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

PR Analysis Report

📚 Storybook Preview

View Storybook for this PR
GitHub Pages may take up to a minute to hydrate after deploy.

🧪 Sandbox Preview

View Sandbox for this PR
GitHub Pages may take up to a minute to hydrate after deploy.

No new or modified components detected.

Bundle Size Summary

No component packages changed.

Accessibility Audit

Status: No accessibility violations detected.


Generated by PR Enrichment workflow | Storybook | Sandbox | View full report

This branch was successfully deployed

1 active deployment
Preview — 08420040 Deployed Aug 24, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant