Skip to content

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

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

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

Conversation

@james-elicx

Copy link
Copy Markdown
Member

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

pkg-pr-new Bot commented Mar 7, 2026

Copy link
Copy Markdown

Open in StackBlitz

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

commit: b7d79ef

@github-actions

github-actions Bot commented Mar 7, 2026

Copy link
Copy Markdown
Contributor
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
Member Author

/bonk review

@ask-bonk ask-bonk Bot left a comment

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.

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

ask-bonk Bot commented Mar 7, 2026

Copy link
Copy Markdown
Contributor

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