0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-16 21:56:25 -05:00
verdaccio/packages/ui-components/jest/setup-env.ts
Juan Picado e7ebccb61d
update major dependencies, remove old nodejs support (#4059)
* update major dependencies, remove old nodejs support

* Update ci.yml

* restore dep
2023-10-07 16:23:04 +02:00

14 lines
254 B
TypeScript

import '@testing-library/jest-dom';
import 'whatwg-fetch';
import { server } from './server';
beforeAll(() => {
server.listen({
onUnhandledRequest: 'warn',
});
});
afterEach(() => server.resetHandlers());
afterAll(() => {
server.close();
});