You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I install a (later) version of the jest package in a project where only (an older version of) the jest-cli package is installed in the root node_modules folder, Node still forwards to that version of the jest-cli package (although jest has the correct version of jest-cli in its own nested node_modules folder).
node_modules\.bin\jest --version (which returns v20.0.4 and not v24.1.0)
I'm using Node 8.9.4 and npm 5.10.0.
Expected behavior
Node forwards to the nested version of jest-cli.
I've checked and the right (newer) version of jest is started, but execution is then forwarded to the older jest-cli package.
The base install (only jest-cli in the root node_modules folder) actually happens on a SharePoint SPFx project, which is generated with a Yeoman generator. The jest-cli package is a dependency of a SPFx package. I installed the newer version of Jest manually after the initial generation.
When I investigated this issue, I came across issue #5294, which describes a similar situation but with a different package hierarchy and initial starting point.
The text was updated successfully, but these errors were encountered:
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.
🐛 Bug Report
When I install a (later) version of the jest package in a project where only (an older version of) the jest-cli package is installed in the root node_modules folder, Node still forwards to that version of the jest-cli package (although jest has the correct version of jest-cli in its own nested node_modules folder).
To Reproduce
I'm using Node 8.9.4 and npm 5.10.0.
Expected behavior
Node forwards to the nested version of jest-cli.
I've checked and the right (newer) version of jest is started, but execution is then forwarded to the older jest-cli package.
The base install (only jest-cli in the root node_modules folder) actually happens on a SharePoint SPFx project, which is generated with a Yeoman generator. The jest-cli package is a dependency of a SPFx package. I installed the newer version of Jest manually after the initial generation.
When I investigated this issue, I came across issue #5294, which describes a similar situation but with a different package hierarchy and initial starting point.
The text was updated successfully, but these errors were encountered: