This repository has been archived by the owner on Jan 16, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 36
Mocking 'crypto' not working #100
Comments
Please fill all input fields |
Oh sorry I thought it was swc main repo |
I think this is duplciate, though |
I'm sorry, a duplicate of which issue? #14 didn't seem quite the same as I don't get an error; the mocking just doesn't happen. |
Thank you. You're saying this is actually working correctly and ts-jest has always done it wrong? swc-project/swc#3843 (comment) |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When using @swc/jest, mocks against
crypto
are not working, but they do work with ts-jest.Versions:
"@swc/core": "^1.2.186",
"@swc/jest": "^0.2.21",
"jest": "^27.5.1",
"typescript": "^4.6.4",
"ts-jest": "^27.1.5"
Results in:
The text was updated successfully, but these errors were encountered: