0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-23 22:27:34 -05:00
verdaccio/packages/plugins/ui-theme/jest/setup-env.ts

19 lines
395 B
TypeScript
Raw Normal View History

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