Skip to content

feat(hook): rewrite npm and pnpm test commands - #2926

Closed
paranoa233 wants to merge 1 commit into
rtk-ai:developfrom
paranoa233:feat/hook-package-manager-rewrites
Closed

paranoa233 wants to merge 1 commit into
rtk-ai:developfrom
paranoa233:feat/hook-package-manager-rewrites

Conversation

@paranoa233

Copy link
Copy Markdown

Summary

  • route npm test and its npm t alias through rtk npm
  • route pnpm test through rtk pnpm
  • add regression coverage for arguments and keep unsupported yarn, bun, and node commands as passthrough

Why

The hook rewrite registry covered npm run and pnpm run, but omitted the package managers' direct test commands. As a result, hooks left these common test invocations unoptimized even though RTK already exposes the corresponding command paths.

Impact

Hook users now get transparent RTK routing for direct npm and pnpm test invocations, including trailing test-runner arguments. Commands without a real RTK filter remain unchanged.

Validation

  • cargo fmt --all --check
  • cargo clippy --all-targets
  • cargo test (2,435 unit tests and 11 integration tests passed; 8 tests ignored by the project)

Part of #2921.

@CLAassistant

CLAassistant commented Jul 10, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@rtk-release-bot

Copy link
Copy Markdown
Contributor

This pull request has been automatically marked as stale due to 90 days of inactivity. If this pull request is still relevant, please leave any comment (for example, "bump"), and we'll keep it open. Your contribution is very much appreciated — we're sorry we haven't been able to review it yet.

@rtk-release-bot

Copy link
Copy Markdown
Contributor

Closing this pull request after a prolonged period of inactivity. If this is still relevant, please ask for it to be reopened. Thank you!

@rtk-release-bot rtk-release-bot Bot closed this Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants