Merge pull request #6074 from matrix-org/jryans/test-noise
Reduce noise in tests
This commit is contained in:
commit
e07e7cf8d2
1 changed files with 4 additions and 1 deletions
|
@ -344,7 +344,10 @@ export function setLanguage(preferredLangs: string | string[]) {
|
||||||
counterpart.registerTranslations(langToUse, langData);
|
counterpart.registerTranslations(langToUse, langData);
|
||||||
counterpart.setLocale(langToUse);
|
counterpart.setLocale(langToUse);
|
||||||
SettingsStore.setValue("language", null, SettingLevel.DEVICE, langToUse);
|
SettingsStore.setValue("language", null, SettingLevel.DEVICE, langToUse);
|
||||||
|
// Adds a lot of noise to test runs, so disable logging there.
|
||||||
|
if (process.env.NODE_ENV !== "test") {
|
||||||
console.log("set language to " + langToUse);
|
console.log("set language to " + langToUse);
|
||||||
|
}
|
||||||
|
|
||||||
// Set 'en' as fallback language:
|
// Set 'en' as fallback language:
|
||||||
if (langToUse !== "en") {
|
if (langToUse !== "en") {
|
||||||
|
|
Loading…
Reference in a new issue