mirror of
https://github.com/prymitive/karma
synced 2026-05-15 04:06:41 +00:00
fix(tests): reset mocks between tests
Ensures that tests don't rely on previous tests mocking things
This commit is contained in:
@@ -18,6 +18,10 @@ beforeEach(() => {
|
||||
onHide.mockClear();
|
||||
});
|
||||
|
||||
afterEach(() => {
|
||||
jest.restoreAllMocks();
|
||||
});
|
||||
|
||||
const FakeModal = () => {
|
||||
return mount(
|
||||
<MainModalContent
|
||||
|
||||
Reference in New Issue
Block a user