Does jest automatically restore mocked modules between test modules?

Viewed 2378

Does jest automatically restore mocked modules between test files? For example, if I call jest.mock('some_module') in one file, do I need to ensure I call jest.unmock('some_module') after all the tests are run in that file?

It's not clear to me whether that happens in the documentation.

1 Answers
Related