Open RedYetiDev opened 2 weeks ago
Just an FYI - this does not fix #51384.
Just an FYI - this does not fix #51384.
Why? If these options can be passed as env variables, then they won't be hostile to NPM scripts, as they can be used in the variable? Right?
The ask in that issue is to be able to run something like npm test -- --test-name-pattern="my pattern"
. More generally (based on feedback I've received), people want to be able to mix test runner arguments in process.execArgv
and process.argv
.
I'm not saying this is a bad change, but this is not what is being requested and I don't think people will be satisfied with it for that use case.
workaround for #51384
Allows
--test-name-pattern
and--test-skip-pattern
to appear in theNODE_OPTIONS
environment variable.