mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-23 22:27:34 -05:00
18 lines
395 B
TypeScript
18 lines
395 B
TypeScript
import '@testing-library/jest-dom';
|
|
import '@testing-library/jest-dom/extend-expect';
|
|
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();
|
|
});
|