1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 01:47:00 +01:00

Reset all Jest mocks in NetworkController tests (#19295)

This makes it possible to test that mock functions are called the
correct amount of times (otherwise Jest will think that a mock function
has been called for as many tests as exist in the NetworkController unit
test suite).
This commit is contained in:
Elliot Winkler 2023-05-26 09:55:19 -06:00 committed by GitHub
parent 7753364958
commit b387a6e795
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -153,6 +153,7 @@ describe('NetworkController', () => {
nock.enableNetConnect('localhost');
nock.cleanAll();
resetAllWhenMocks();
jest.resetAllMocks();
});
describe('constructor', () => {