mirror of
https://github.com/strapi/strapi.git
synced 2025-11-02 10:55:37 +00:00
Fix: Close msw server properly after running the testsuite
This commit is contained in:
parent
22f93b2505
commit
3c3a9dd275
@ -69,7 +69,9 @@ const setup = (...args) =>
|
||||
describe('useLicenseLimits', () => {
|
||||
beforeAll(() => server.listen());
|
||||
|
||||
afterAll(() => server.resetHandlers());
|
||||
afterAll(() => {
|
||||
server.close();
|
||||
});
|
||||
|
||||
beforeEach(() => {
|
||||
jest.clearAllMocks();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user