Skip to content

test: cover Windows -- arg forwarding in shims#9400

Draft
Aniketiitk21 wants to merge 1 commit into
npm:latestfrom
Aniketiitk21:codex-test-windows-shims-double-dash
Draft

test: cover Windows -- arg forwarding in shims#9400
Aniketiitk21 wants to merge 1 commit into
npm:latestfrom
Aniketiitk21:codex-test-windows-shims-double-dash

Conversation

@Aniketiitk21
Copy link
Copy Markdown

Summary

Adds Windows shim regression coverage for npm test -- --foo=bar.

Issue #9353 reproduces on the published npm@11.14.1 PowerShell -Command path, where --foo=bar is misclassified as npm CLI config instead of being forwarded to the script after the first --.

Current main already forwards the argument correctly. This PR locks that behavior in with an explicit windows-shims test so the PowerShell path cannot regress.

Test plan

  • Reproduced the bad behavior on published npm@11.14.1
  • Verified current main forwards --foo=bar correctly through npm.cmd
  • Verified current main forwards --foo=bar correctly through npm.ps1
  • Added test -- --foo=bar coverage to test/bin/windows-shims.js

Refs #9353.

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