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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-12-12 21:07:13 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-12-12 21:07:13 +0300
commitba5be4989e02566ad45191b6d97815e189a26dac (patch)
tree96a4ace3c3d61ec4aea31cbf548718ef67cfd84b /jest.config.base.js
parent22a3da26ad21d67acaef7b2598429c8a003f1037 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'jest.config.base.js')
-rw-r--r--jest.config.base.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/jest.config.base.js b/jest.config.base.js
index 77267f7375e..de9bff774e1 100644
--- a/jest.config.base.js
+++ b/jest.config.base.js
@@ -1,6 +1,7 @@
const IS_EE = require('./config/helpers/is_ee_env');
const isESLint = require('./config/helpers/is_eslint');
const IS_JH = require('./config/helpers/is_jh_env');
+const { TEST_HOST } = require('./spec/frontend/__helpers__/test_constants');
module.exports = (path, options = {}) => {
const {
@@ -156,6 +157,7 @@ module.exports = (path, options = {}) => {
'dateformat',
'lowlight',
'vscode-languageserver-types',
+ 'yaml',
...gfmParserDependencies,
];
@@ -186,11 +188,16 @@ module.exports = (path, options = {}) => {
'^.+\\.(md|zip|png|yml|yaml)$': './spec/frontend/__helpers__/raw_transformer.js',
},
transformIgnorePatterns: [`node_modules/(?!(${transformIgnoreNodeModules.join('|')}))`],
- timers: 'legacy',
+ fakeTimers: {
+ enableGlobally: true,
+ doNotFake: ['nextTick', 'setImmediate'],
+ legacyFakeTimers: true,
+ },
testEnvironment: '<rootDir>/spec/frontend/environment.js',
testEnvironmentOptions: {
IS_EE,
IS_JH,
+ url: TEST_HOST,
},
testRunner: 'jest-jasmine2',
};