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
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
Describe the bug
The mocking doesn't work with built-in modules when there is / in the import. The tests works with ts-jest without issues.
Input code
https://stackblitz.com/edit/swc-jest-bug?file=src%2Findex.spec.ts
Config
Playground link (or link to the minimal reproduction)
https://stackblitz.com/edit/swc-jest-bug?file=src%2Findex.spec.ts
SWC Info output
Operating System:
Platform: linux
Arch: x64
Machine Type: undefined
Version: Ubuntu 20.04.0 LTS Tue Apr 30 2024 11:53:11 GMT+0200 (Central European Summer Time)
CPU: (4 cores)
Models: Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
Expected behavior
Use manual mocks and test should pass
Actual behavior
The manual mock is ignored
Version
1.4.17
Additional context
It's was working on
and broken after
The text was updated successfully, but these errors were encountered: