debian-mirror-gitlab/spec/frontend_integration/test_helpers/setup/setup_globals.js
2021-01-03 14:25:43 +05:30

15 lines
242 B
JavaScript

import { setTestTimeout } from 'helpers/timeout';
beforeEach(() => {
window.gon = {
api_version: 'v4',
relative_url_root: '',
};
setTestTimeout(7000);
jest.useRealTimers();
});
afterEach(() => {
jest.useFakeTimers();
});