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
For context: I am trying to switch package manager from yarn 1.x to pnpm 8.x in my workplace. As a first step, I used pnpm import yarn.lock to generate the pnpm lockfile and after with some I was able to get most of it working(build source, storybook, linting, E2E etc..,) except jest unit tests.
Currently in my local env, when I run pnpm test (i.e, "test": "jest") most of the tests pass, except few. But it is not the same case in CI, all tests fail due to some package
Local env
CI env
My questions are ...
what makes both environments different ?
How can I reproduce the same CI error?
How can I keep environments deterministic in future ?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
For context: I am trying to switch package manager from yarn 1.x to pnpm 8.x in my workplace. As a first step, I used
pnpm import yarn.lock
to generate the pnpm lockfile and after with some I was able to get most of it working(build source, storybook, linting, E2E etc..,) except jest unit tests.Currently in my local env, when I run
pnpm test
(i.e, "test": "jest") most of the tests pass, except few. But it is not the same case in CI, all tests fail due to some packageLocal env
![Screen Shot 2023-05-08 at 5 53 25 pm](https://user-images.githubusercontent.com/5235065/236767930-fa6e555c-5379-4311-8a92-6bbfc977e23a.png)
CI env
![Screen Shot 2023-05-08 at 5 54 51 pm](https://user-images.githubusercontent.com/5235065/236768655-50de4a98-9553-43c1-ab74-229345702e47.png)
My questions are ...
Beta Was this translation helpful? Give feedback.
All reactions