From 6aa1baa5fdf54553258e1a0db747867660468e2f Mon Sep 17 00:00:00 2001 From: Jason Zhu Date: Sun, 26 Mar 2023 20:09:58 +1100 Subject: [PATCH] Remove unncessary beforeAfter in jest, store was re-created for every test --- src/features/Pokedex/__test__/pokedexApi.test.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/features/Pokedex/__test__/pokedexApi.test.ts b/src/features/Pokedex/__test__/pokedexApi.test.ts index 9e804a6..541afb3 100644 --- a/src/features/Pokedex/__test__/pokedexApi.test.ts +++ b/src/features/Pokedex/__test__/pokedexApi.test.ts @@ -18,10 +18,6 @@ describe('pokedexApi', () => { }); }); - afterEach(() => { - store.dispatch(pokedexApi.util.resetApiState()); - }); - describe('JEST test against real API', () => { test('visit https://pokeapi.co/api/v2/region/1 should return correct data', async () => { await store.dispatch(pokedexApi.endpoints.getRegion.initiate(1));