mirror of
https://github.com/strapi/strapi.git
synced 2025-11-14 01:02:04 +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', () => {
|
describe('useLicenseLimits', () => {
|
||||||
beforeAll(() => server.listen());
|
beforeAll(() => server.listen());
|
||||||
|
|
||||||
afterAll(() => server.resetHandlers());
|
afterAll(() => {
|
||||||
|
server.close();
|
||||||
|
});
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
jest.clearAllMocks();
|
jest.clearAllMocks();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user