mirror of
https://github.com/strapi/strapi.git
synced 2025-07-19 23:16:47 +00:00

* chore: initiate moving CM to own package * chore: refactor to handle routes * chore: init review-workflows-package * chore: fix build * chore: refactor review-workflows fe * chore: fix unit suite * chore: spelling mistake Co-authored-by: Jamie Howard <48524071+jhoward1994@users.noreply.github.com> --------- Co-authored-by: Jamie Howard <48524071+jhoward1994@users.noreply.github.com>
20 lines
278 B
TypeScript
20 lines
278 B
TypeScript
import { server } from '@strapi/admin/strapi-admin/test';
|
|
|
|
import { handlers } from './server';
|
|
|
|
beforeAll(() => {
|
|
server.listen();
|
|
});
|
|
|
|
beforeEach(() => {
|
|
server.use(...handlers);
|
|
});
|
|
|
|
afterEach(() => {
|
|
server.resetHandlers();
|
|
});
|
|
|
|
afterAll(() => {
|
|
server.close();
|
|
});
|