debian-mirror-gitlab/spec/frontend_integration/test_helpers/setup/setup_globals.js

16 lines
242 B
JavaScript
Raw Normal View History

2020-10-24 23:57:45 +05:30
import { setTestTimeout } from 'helpers/timeout';
beforeEach(() => {
window.gon = {
api_version: 'v4',
relative_url_root: '',
};
2021-01-03 14:25:43 +05:30
setTestTimeout(7000);
2020-10-24 23:57:45 +05:30
jest.useRealTimers();
});
afterEach(() => {
jest.useFakeTimers();
});