Welcome to mirror list, hosted at ThFree Co, Russian Federation.

setup_globals.js « setup « test_helpers « frontend_integration « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2b0e8f76c3c7a03eb2745b5f20d211dc9ae18f54 (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(5000);
  jest.useRealTimers();
});

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