mirror of https://github.com/vector-im/riot-web
				
				
				
			Reduce noise in tests
This disables a common log message to cut down the test log size and make it easier to read messages specific to each test.pull/21833/head
							parent
							
								
									aa4984019c
								
							
						
					
					
						commit
						bee1a88f0b
					
				|  | @ -344,7 +344,10 @@ export function setLanguage(preferredLangs: string | string[]) { | |||
|         counterpart.registerTranslations(langToUse, langData); | ||||
|         counterpart.setLocale(langToUse); | ||||
|         SettingsStore.setValue("language", null, SettingLevel.DEVICE, langToUse); | ||||
|         console.log("set language to " + 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); | ||||
|         } | ||||
| 
 | ||||
|         // Set 'en' as fallback language:
 | ||||
|         if (langToUse !== "en") { | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 J. Ryan Stinnett
						J. Ryan Stinnett