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

* chore(helper-plugin)!: move useRBAC * chore: get tests working * chore!: remove auth * chore!: remove usePersistentState * fix: refactor building admin package so it shares modules with different entries * fix: session vs local
20 lines
280 B
JavaScript
20 lines
280 B
JavaScript
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();
|
|
});
|