0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-16 21:56:25 -05:00
verdaccio/packages/plugins/ui-theme/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

17 lines
345 B
TypeScript

import '@testing-library/jest-dom';
import 'whatwg-fetch';
import { server } from './server';
// mock load translations to avoid warnings
jest.mock('../src/i18n/loadTranslationFile');
beforeAll(() => {
server.listen({
onUnhandledRequest: 'warn',
});
});
afterEach(() => server.resetHandlers());
afterAll(() => {
server.close();
});