Skip to content

test(cli): add --help case to config snap tests for npm10/yarn1/yarn4#1585

Merged
fengmk2 merged 2 commits into
voidzero-dev:mainfrom
jong-kyung:test/snap-config-help-cases
May 15, 2026
Merged

test(cli): add --help case to config snap tests for npm10/yarn1/yarn4#1585
fengmk2 merged 2 commits into
voidzero-dev:mainfrom
jong-kyung:test/snap-config-help-cases

Conversation

@jong-kyung
Copy link
Copy Markdown
Collaborator

Summary

Align the vp pm config snap matrix by adding a --help case to command-config-npm10, command-config-yarn1, and command-config-yarn4 — previously only bun, pnpm10, and pnpm11 captured it.

clap-generated help is deterministic, so this gives a cheap regression signal whenever the vp pm config command surface (flags, descriptions, ordering) changes, and forces every PM fixture to flag the same regression in lockstep.

Changes

For each of the three fixtures:

  • steps.json: prepend vp pm config --help ahead of the existing --dry-run step
  • snap.txt: regenerated with the 17-line help block; existing set/get/delete output unchanged

Aligns these three fixtures with the existing pnpm10/pnpm11 config
snaps, which already verify clap's `--help` output. Provides a
deterministic regression signal for the `vp pm config` command surface
across the full PM matrix.
@netlify
Copy link
Copy Markdown

netlify Bot commented May 15, 2026

Deploy Preview for viteplus-preview canceled.

Name Link
🔨 Latest commit 84d561c
🔍 Latest deploy log https://app.netlify.com/projects/viteplus-preview/deploys/6a070cbd9caf4a000836be17

@jong-kyung jong-kyung self-assigned this May 15, 2026
@jong-kyung jong-kyung requested a review from fengmk2 May 15, 2026 08:25
@fengmk2 fengmk2 merged commit 023e700 into voidzero-dev:main May 15, 2026
38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants