Skip to content
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

Fix #1

Open
Ethergeist opened this issue Jan 11, 2022 · 1 comment
Open

Fix #1

Ethergeist opened this issue Jan 11, 2022 · 1 comment

Comments

@Ethergeist
Copy link

@jasonrberk Thank you for this github repo - I've been trying to get ESM mocks to work, and was unaware I needed to use @jest/globals. I ran into the same issue that you did, but I was able to get things working by calling .clearAllMocks() on the mocked objects instead of .mockClear() - if you do a console.log(mockedClass) it will show that there is a clearAllMocks function but not a mockClear - Maybe the documentation for Jest is out of date - hopefully this helps (or you haven't solved it already, lol

@AYehia0
Copy link

AYehia0 commented May 5, 2022

@Ethergeist this doesn't work :'(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants