summaryrefslogtreecommitdiff
path: root/spec/frontend_integration/test_helpers/setup/setup_globals.js
blob: b63a9a96372fcab08dd80125c0e828a7a8846069 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { setTestTimeout } from 'helpers/timeout';

beforeEach(() => {
  window.gon = {
    api_version: 'v4',
    relative_url_root: '',
  };

  setTestTimeout(7000);
  jest.useRealTimers();
});

afterEach(() => {
  jest.useFakeTimers();
});