[BUG] npm run -- <args> not working #3336
Labels
Bug
thing that needs fixing
Needs Triage
needs review for next steps
Release 7.x
work is associated with a specific npm 7 release
Is there an existing issue for this?
Current Behavior
When i have a script definition, like
test
inpackage.json
, when i try to execute this command with arguments, npm is interpreting as a npm cli argument.Ex:
npm run test -- -h
Gives-me:
Expected Behavior
I expect that when i run
npm run test -- -h
, it gives me jest help info.Steps To Reproduce
"test": "jest"
npm run test -- -h
Environment
The text was updated successfully, but these errors were encountered: