2021-03-24 15:18:01 +01:00
|
|
|
const checkEnvironment = require('./config/helpers/check_frontend_integration_env');
|
2020-05-14 15:18:44 +02:00
|
|
|
const baseConfig = require('./jest.config.base');
|
|
|
|
|
2021-03-24 15:18:01 +01:00
|
|
|
checkEnvironment();
|
|
|
|
|
2020-05-14 15:18:44 +02:00
|
|
|
module.exports = {
|
2021-03-23 16:09:42 +01: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-23 15:43:38 +02:00
|
|
|
'^jh_else_ce_test_helpers(/.*)$': '<rootDir>/spec/frontend_integration/test_helpers$1',
|
2021-03-23 16:09:42 +01:00
|
|
|
},
|
|
|
|
moduleNameMapperEE: {
|
|
|
|
'^ee_else_ce_test_helpers(/.*)$': '<rootDir>/ee/spec/frontend_integration/test_helpers$1',
|
|
|
|
},
|
2021-08-23 15:43:38 +02:00
|
|
|
moduleNameMapperJH: {
|
|
|
|
'^jh_else_ce_test_helpers(/.*)$': '<rootDir>/jh/spec/frontend_integration/test_helpers$1',
|
|
|
|
},
|
2021-03-23 16:09:42 +01:00
|
|
|
}),
|
2020-05-14 15:18:44 +02:00
|
|
|
};
|