-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Methods on ES6 class instances don't get mocked #332
Comments
I thought maybe I could use For testing, if instead of checking the descriptor I just check that the
|
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
ES6 class methods are not enumerable, so they aren't being mocked by Jest.
I'm using Babel to do the transforms.
I also tried exporting the class and that fails even more spectacularly. I can't even create an instance of that mock.
The text was updated successfully, but these errors were encountered: