36 Star 149 Fork 1

Gitee 极速下载 / gitlabhq

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/gitlabhq/gitlabhq
克隆/下载
jest.config.integration.js 1.37 KB
一键复制 编辑 原始数据 按行查看 历史
const checkEnvironment = require('./config/helpers/check_frontend_integration_env');
const baseConfig = require('./jest.config.base');
checkEnvironment();
console.log(`
PSA: Running into unexpected and/or strange frontend integration test errors?
Please help improve our error logging by following the instructions on this issue:
https://gitlab.com/gitlab-org/gitlab/-/issues/345513
`);
module.exports = {
...baseConfig('spec/frontend_integration', {
moduleNameMapper: {
'^test_helpers(/.*)$': '<rootDir>/spec/frontend_integration/test_helpers$1',
'^ee_else_ce_test_helpers(/.*)$': '<rootDir>/spec/frontend_integration/test_helpers$1',
'^jh_else_ce_test_helpers(/.*)$': '<rootDir>/spec/frontend_integration/test_helpers$1',
},
moduleNameMapperEE: {
'^ee_else_ce_test_helpers(/.*)$': '<rootDir>/ee/spec/frontend_integration/test_helpers$1',
},
moduleNameMapperJH: {
'^jh_else_ce_test_helpers(/.*)$': '<rootDir>/jh/spec/frontend_integration/test_helpers$1',
},
// We need to include spec/frontend in `roots` for the __mocks__ to be found
roots: ['<rootDir>/spec/frontend_integration/', '<rootDir>/spec/frontend/'],
rootsEE: ['<rootDir>/ee/spec/frontend_integration/'],
rootsJH: ['<rootDir>/jh/spec/frontend_integration/'],
}),
fakeTimers: {
enableGlobally: false,
},
testTimeout: process.env.CI ? 20000 : 7000,
};
Ruby
1
https://gitee.com/mirrors/gitlab.git
git@gitee.com:mirrors/gitlab.git
mirrors
gitlab
gitlabhq
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891