-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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: