2021-03-25 21:09:13 +00:00
|
|
|
const checkEnvironment = require('./config/helpers/check_frontend_integration_env');
|
2020-05-15 21:08:21 +00:00
|
|
|
const baseConfig = require('./jest.config.base');
|
|
|
|
|
2021-03-25 21:09:13 +00:00
|
|
|
checkEnvironment();
|
|
|
|
|
2021-11-12 12:10:27 +00:00
|
|
|
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
|
|
|
|
`);
|
|
|
|
|
2020-05-15 21:08:21 +00:00
|
|
|
module.exports = {
|
2021-03-23 18:09:05 +00:00
|
|
|
...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',
|
2021-08-30 09:09:12 +00:00
|
|
|
'^jh_else_ce_test_helpers(/.*)$': '<rootDir>/spec/frontend_integration/test_helpers$1',
|
2021-03-23 18:09:05 +00:00
|
|
|
},
|
|
|
|
moduleNameMapperEE: {
|
|
|
|
'^ee_else_ce_test_helpers(/.*)$': '<rootDir>/ee/spec/frontend_integration/test_helpers$1',
|
|
|
|
},
|
2021-08-30 09:09:12 +00:00
|
|
|
moduleNameMapperJH: {
|
|
|
|
'^jh_else_ce_test_helpers(/.*)$': '<rootDir>/jh/spec/frontend_integration/test_helpers$1',
|
|
|
|
},
|
2021-03-23 18:09:05 +00:00
|
|
|
}),
|
2021-11-23 12:14:32 +00:00
|
|
|
timers: 'real',
|
2020-05-15 21:08:21 +00:00
|
|
|
};
|