You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently we are not setting resetMocks: true and restoreMocks: true within jest.config.js. We should enable this and remove calls to jest.clearAllMocks() and jest.resetAllMocks() within test files.
Note that this may require substantial changes for any test suites that rely heavily upon shared mocks.
The text was updated successfully, but these errors were encountered:
mcmire
changed the title
Reset and restore all mocks between each test.
Update test setup to reset and restore all mocks between each test
Mar 23, 2022
Currently we are not setting
resetMocks: true
andrestoreMocks: true
withinjest.config.js
. We should enable this and remove calls tojest.clearAllMocks()
andjest.resetAllMocks()
within test files.Note that this may require substantial changes for any test suites that rely heavily upon shared mocks.
The text was updated successfully, but these errors were encountered: