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
git clone [email protected]:thomasballinger/ts-jest-repro.git
cd ts-jest-repro/packages/tests
npm i
npx jest # should fail
npx jest # should succeed the second time
npx jest --no-cache # should fail again
Expected behavior
I expect --no-cache to behave the same as without the flag. I'd like this custom condition to resolve, so I'd like this test to pass.
Actual behavior
The custom condition appears not to be followed for package if --no-cache is used, or if it's the first run.
I originally thought this was CI thing (because the cache is never populated there!)
thomasballinger
changed the title
[Bug]: Module resolution for custom condition fails if cache available
[Bug]: Module resolution for custom condition fails if no cache available
Nov 26, 2024
Version
29.2.5
Steps to reproduce
See repro at https://github.com/thomasballinger/ts-jest-repro
Expected behavior
I expect --no-cache to behave the same as without the flag. I'd like this custom condition to resolve, so I'd like this test to pass.
Actual behavior
The custom condition appears not to be followed for package if
--no-cache
is used, or if it's the first run.Debug log
ts-jest.log
Additional context
No response
Environment
The text was updated successfully, but these errors were encountered: