samedi 4 juillet 2020

Javscript Jest test framework: when is a mock unmocked?

I have a test like so:

test("my test", () => {
jest.mock(...)
some_module.some_function = jest.fn();
...


});

My question is, when the test is finished will all of the mocks be "unset"? Or do I have to explicitly remove all mocks myself?

Aucun commentaire:

Enregistrer un commentaire