JavaScript Unit Tests: Enable shouldFailOnLog only for CI environments (#59901)

Tests: enable shouldFailOnLog only for CI environments
This commit is contained in:
Matias Chomicki authored and GitHub committed 2022-12-06 19:38:55 +01:00
1 parent abb49d96b5
commit 7e339decfe
1 file changed
+1 -1
+1 -1
View File
@@ -6,7 +6,7 @@ import { initReactI18next } from 'react-i18next';
import { matchers } from './matchers';
failOnConsole({
//shouldFailOnLog: true,
shouldFailOnLog: process.env.CI ? true : false,
});
expect.extend(matchers);