mirror of
https://github.com/strapi/strapi.git
synced 2025-06-27 00:41:25 +00:00

* chore: migrate and create config files for the migration * chore: migrate test utils to TS * chore: fix the typo * chore: fix eslint errors * chore: fix prettier error
20 lines
280 B
TypeScript
20 lines
280 B
TypeScript
import { server } from '@strapi/admin/strapi-admin/test';
|
|
|
|
import { handlers } from './handlers';
|
|
|
|
beforeAll(() => {
|
|
server.listen();
|
|
});
|
|
|
|
beforeEach(() => {
|
|
server.use(...handlers);
|
|
});
|
|
|
|
afterEach(() => {
|
|
server.resetHandlers();
|
|
});
|
|
|
|
afterAll(() => {
|
|
server.close();
|
|
});
|