Skip to content

docs: remove unnecessary -- from pnpm test examples#313

Merged
james-elicx merged 1 commit intomainfrom
docs/fix-pnpm-test-examples
Mar 7, 2026
Merged

docs: remove unnecessary -- from pnpm test examples#313
james-elicx merged 1 commit intomainfrom
docs/fix-pnpm-test-examples

Conversation

@james-elicx
Copy link
Copy Markdown
Collaborator

pnpm forwards flags and positional args directly to scripts, so -- is not needed and was silently running the full suite instead of the targeted file.

@james-elicx james-elicx enabled auto-merge (squash) March 7, 2026 11:42
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Mar 7, 2026

Open in StackBlitz

npm i https://pkg.pr.new/vinext@313

commit: b7d79ef

@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 7, 2026

Example Preview Production Original
app-router-cloudflare preview production
pages-router-cloudflare preview production
app-router-playground preview production original
realworld-api-rest preview production
nextra-docs-template preview production
benchmarks preview production
hackernews preview production original

@james-elicx james-elicx disabled auto-merge March 7, 2026 11:48
@james-elicx
Copy link
Copy Markdown
Collaborator Author

/bonk review

Copy link
Copy Markdown
Contributor

@ask-bonk ask-bonk bot left a comment

Choose a reason for hiding this comment

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

Correct fix. pnpm forwards positional args directly to the underlying script, so -- is unnecessary. The test script is vitest run, so pnpm test tests/routing.test.ts correctly becomes vitest run tests/routing.test.ts.

The alignment cleanup is a nice touch too — makes the comment column consistent.

@ask-bonk
Copy link
Copy Markdown
Contributor

ask-bonk bot commented Mar 7, 2026

Approved the PR. The change is straightforward and correct — pnpm doesn't need -- to forward positional args to scripts, unlike npm. The -- was silently causing the full test suite to run instead of targeted files, which directly contradicts the guidance in AGENTS.md about running only relevant tests during development. Good catch.

github run

@james-elicx james-elicx merged commit 5421c5d into main Mar 7, 2026
32 of 33 checks passed
@james-elicx james-elicx deleted the docs/fix-pnpm-test-examples branch March 7, 2026 11:49
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.

1 participant