pnpm run test --
is not handled as a package script when specified in jestCommandLine
#974
Labels
pnpm run test --
is not handled as a package script when specified in jestCommandLine
#974
Environment
Jest 29 & PNPM 7
Prerequisite
pnpm run test
Steps to Reproduce
Set
jestCommandLine
topnpm run test --
and use the debug test workflow.Expected Behavior
The package script will be correctly delegated to for jest binary invocation.
Actual Behavior
The invocation will show node invoking the specified string expecting it to be a path to a module:
causing "Cannot find module" error. This works with
npm run test
because usage of a "magic string" (npm
) changes the debug invocation to refer to the package manager instead of the localnode
binary.The text was updated successfully, but these errors were encountered: