use setupRequestMockHandlers inside msw
Signed-off-by: Johan Haals <johan.haals@gmail.com>
This commit is contained in:
@@ -24,9 +24,7 @@ export const msw = {
|
||||
close: () => void;
|
||||
resetHandlers: () => void;
|
||||
}) => {
|
||||
beforeAll(() => worker.listen({ onUnhandledRequest: 'error' }));
|
||||
afterAll(() => worker.close());
|
||||
afterEach(() => worker.resetHandlers());
|
||||
setupRequestMockHandlers(worker);
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user