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