Replies: 2 comments 2 replies
-
It's November 19 2020 still having a corona problem at the same time I am still having the same problem I had in 2018 jest.mock is not a function !!!!!! please do something |
Beta Was this translation helpful? Give feedback.
-
Just come across this GitHub issue comment from a CodeSandbox member:
So it appears the team are aware of the issue, but it's proving to be a bit of a challenge, and so the team are unable to provide an estimate for the fix for now. Re-assuring to know that it's on their minds. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I've come across the issue where it seems Jest mocks are not supported. Where in my particular CodeSandbox example, when running the test, an exception is thrown in the test output
TypeError: jest.mock is not a function
.I found an open issue (#513) which also describes the same problem, dating as far back as 2018.
I then also stumbled across this archived Spectrum chat which confirmed Jest mocks are not supported, dating back to 2019.
Mocking is pretty much an integral part of writing unit tests.
Will Jest mocks ever be supported on the CodeSandbox client?
Beta Was this translation helpful? Give feedback.
All reactions