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
Original issue: Tests are failing with typescript compilation error. However, when the test file is updated without making any actual change, for example adding space, the tests are passing. This is strange since nothing has changed. I assume that this is a caching issue.
My Solution:
run nx test <package name > --clearCache to clear jest cache
then run nx test <package name>
Problem
The second command sometimes returns the error below:
nx run <package name>:test
> NX ENOENT: no such file or directory, open '/private/var/folders/g1/h0b_zyq97dg3x0kdd57d143m0000gp/T/jest_dy/haste-map-b9ed7ddce28316ef82e5e0fdc3d5b1de-4ff5fed0616f9bbb9c6932e0112e39a1-14a3afd6051f0a3420bd79c4ec57d6ea'
Expected Behavior
There should be no error when running tests after clearing jest cache.
GitHub Repo
No response
Steps to Reproduce
nx test --clearCache
nx test
Will hopefully soon create repo with code to reproduce. However, I assume any project with Jest and Typescript may cause this issue.
nx run <package name>> NX ENOENT: no such file or directory, open '/private/var/folders/g1/h0b_zyq97dg3x0kdd57d143m0000gp/T/jest_dy/haste-map-b9ed7ddce28316ef82e5e0fdc3d5b1de-4ff5fed0616f9bbb9c6932e0112e39a1-14a3afd6051f0a3420bd79c4ec57d6ea
Package Manager Version
No response
Operating System
macOS
Linux
Windows
Other (Please specify)
Additional Information
No response
The text was updated successfully, but these errors were encountered:
Current Behavior
Original issue: Tests are failing with typescript compilation error. However, when the test file is updated without making any actual change, for example adding space, the tests are passing. This is strange since nothing has changed. I assume that this is a caching issue.
My Solution:
nx test <package name > --clearCache
to clear jest cachenx test <package name>
Problem
The second command sometimes returns the error below:
Expected Behavior
There should be no error when running tests after clearing jest cache.
GitHub Repo
No response
Steps to Reproduce
nx test --clearCache
nx test
Will hopefully soon create repo with code to reproduce. However, I assume any project with Jest and Typescript may cause this issue.
Nx Report
Failure Logs
Package Manager Version
No response
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: