gitlab-org--gitlab-foss/spec/frontend_integration/test_helpers/setup/setup_globals.js

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();
});