Skip to content

Commit 402c884

Browse files
committed
fix: remove beforeEach
seems like this is no longer needed
1 parent 1a381b4 commit 402c884

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/components/counter/Counter.spec.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,6 @@ describe('Counter', () => {
1717
// Add jest mock spy to watch for store.dispatch method. See https://jestjs.io/docs/en/jest-object#jestspyonobject-methodname for more info
1818
jest.spyOn(store, 'dispatch')
1919

20-
beforeEach(() => {
21-
// Clear any saved mock data from previous tests, because jest saves calls data for spies and mocks, https://jestjs.io/docs/en/mock-function-api#mockfnmockclear
22-
store.dispatch.mockClear()
23-
})
24-
2520
it('renders without crashing.', () => {
2621
const wrapper = mount(
2722
<Provider store={store}>

0 commit comments

Comments
 (0)