fix(tests): do not build mobile on i18n tests (#45507)
This commit is contained in:
@ -4,13 +4,17 @@ const path = require('path');
|
|||||||
const { getChallengesForLang } = require('../../../curriculum/getChallenges');
|
const { getChallengesForLang } = require('../../../curriculum/getChallenges');
|
||||||
const { buildMobileCurriculum } = require('./build-mobile-curriculum');
|
const { buildMobileCurriculum } = require('./build-mobile-curriculum');
|
||||||
|
|
||||||
|
const { CURRICULUM_LOCALE } = process.env;
|
||||||
|
|
||||||
const globalConfigPath = path.resolve(__dirname, '../../../config');
|
const globalConfigPath = path.resolve(__dirname, '../../../config');
|
||||||
|
|
||||||
// We are defaulting to English because the ids for the challenges are same
|
// We are defaulting to English because the ids for the challenges are same
|
||||||
// across all languages.
|
// across all languages.
|
||||||
getChallengesForLang('english')
|
getChallengesForLang('english')
|
||||||
.then(result => {
|
.then(result => {
|
||||||
buildMobileCurriculum(result);
|
if (CURRICULUM_LOCALE === 'english') {
|
||||||
|
buildMobileCurriculum(result);
|
||||||
|
}
|
||||||
return result;
|
return result;
|
||||||
})
|
})
|
||||||
.then(JSON.stringify)
|
.then(JSON.stringify)
|
||||||
|
Reference in New Issue
Block a user