mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-16 21:56:25 -05:00
e7ebccb61d
* update major dependencies, remove old nodejs support * Update ci.yml * restore dep
17 lines
345 B
TypeScript
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();
|
|
});
|