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
reproduction steps for how I stumbled upon this phantom dependency can be found at original issue
simpler reproductions steps are to look at jest-preset-angular/build/config/ng-jest-config.js and confirm that jest-util is a directly required dependency, and should thus be included in the dependencies or peerDependencies of this package's package.json
Expected behavior
When installing jest-preset-angular, any packages which are directly depended on by javascript files published by jest-preset-angular should be listed in either the dependencies or peerDependencies.
Actual behavior
When installing jest-preset-angular and inspecting it's package.json, it currently does not list jest-util under it's dependencies. It is probably publicly hoisted by some other package that jest-preset-angular depends on, but when using pnpm which does not publicly hoist dependencies, it fails.
Additional context
I'm using pnpm which by default, and with good reason, does not publicly hoist dependencies.
Version
12.2.2
Steps to reproduce
jest-preset-angular/build/config/ng-jest-config.js
and confirm thatjest-util
is a directly required dependency, and should thus be included in thedependencies
orpeerDependencies
of this package'spackage.json
Expected behavior
When installing
jest-preset-angular
, any packages which are directly depended on by javascript files published byjest-preset-angular
should be listed in either thedependencies
orpeerDependencies
.Actual behavior
When installing
jest-preset-angular
and inspecting it'spackage.json
, it currently does not listjest-util
under it's dependencies. It is probably publicly hoisted by some other package thatjest-preset-angular
depends on, but when using pnpm which does not publicly hoist dependencies, it fails.Additional context
I'm using pnpm which by default, and with good reason, does not publicly hoist dependencies.
Environment
The text was updated successfully, but these errors were encountered: