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
In setupTests.ts just import anything from source using '@/...' and it will fail with: Error: Jest: Got error running globalSetup - Cannot find module.
Moving setupTests.ts to setupFiles does not break.
But I do not want to run it before each and every test.
Duplicate of #6179, but @wanton7solution just caused more weird issues to deal with.
I tried replacing the shortcut import with a full one, which loads the first file, but then fails within that one... so I would have to change many files to remove short imports which is a pain.
Version
29.7.0
Steps to reproduce
In setupTests.ts just import anything from source using '@/...' and it will fail with:
Error: Jest: Got error running globalSetup - Cannot find module
.Moving setupTests.ts to
setupFiles
does not break.But I do not want to run it before each and every test.
Expected behavior
Expected to work.
Actual behavior
Fails with:
Error: Jest: Got error running globalSetup - Cannot find module
.Additional context
Duplicate of #6179, but @wanton7 solution just caused more weird issues to deal with.
I tried replacing the shortcut import with a full one, which loads the first file, but then fails within that one... so I would have to change many files to remove short imports which is a pain.
Environment
The text was updated successfully, but these errors were encountered: