DEV Community

Discussion on: Mocking ES6 class methods with Jest!

Collapse
 
09wattry profile image
Ryan

I have tried all of these functions and still the value is either the same or undefined. Any hints?

Thread Thread
 
mattarau profile image
Matt Arau

Have you tried afterEach(() => jest.resetAllMocks()); ?