summaryrefslogtreecommitdiff
path: root/jest.config.base.js
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-08-18 08:17:02 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2022-08-18 08:17:02 +0000
commitb39512ed755239198a9c294b6a45e65c05900235 (patch)
treed234a3efade1de67c46b9e5a38ce813627726aa7 /jest.config.base.js
parentd31474cf3b17ece37939d20082b07f6657cc79a9 (diff)
downloadgitlab-ce-b39512ed755239198a9c294b6a45e65c05900235.tar.gz
Add latest changes from gitlab-org/gitlab@15-3-stable-eev15.3.0-rc42
Diffstat (limited to 'jest.config.base.js')
-rw-r--r--jest.config.base.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/jest.config.base.js b/jest.config.base.js
index d4b1ace3b2c..d90a3b9825e 100644
--- a/jest.config.base.js
+++ b/jest.config.base.js
@@ -146,9 +146,11 @@ module.exports = (path, options = {}) => {
'monaco-yaml',
'fast-mersenne-twister',
'prosemirror-markdown',
+ 'marked',
'fault',
'dateformat',
'lowlight',
+ 'vscode-languageserver-types',
...gfmParserDependencies,
];
@@ -168,21 +170,23 @@ module.exports = (path, options = {}) => {
resolver: './jest_resolver.js',
setupFilesAfterEnv: [`<rootDir>/${path}/test_setup.js`, 'jest-canvas-mock'],
restoreMocks: true,
+ slowTestThreshold: process.env.CI ? 6000 : 500,
transform: {
'^.+\\.(gql|graphql)$': 'jest-transform-graphql',
'^.+_worker\\.js$': './spec/frontend/__helpers__/web_worker_transformer.js',
'^.+\\.js$': 'babel-jest',
- '^.+\\.vue$': 'vue-jest',
+ '^.+\\.vue$': '@vue/vue2-jest',
'spec/frontend/editor/schema/ci/yaml_tests/.+\\.(yml|yaml)$':
'./spec/frontend/__helpers__/yaml_transformer.js',
'^.+\\.(md|zip|png|yml|yaml)$': 'jest-raw-loader',
},
transformIgnorePatterns: [`node_modules/(?!(${transformIgnoreNodeModules.join('|')}))`],
- timers: 'fake',
+ timers: 'legacy',
testEnvironment: '<rootDir>/spec/frontend/environment.js',
testEnvironmentOptions: {
IS_EE,
IS_JH,
},
+ testRunner: 'jest-jasmine2',
};
};