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

Tests: enable shouldFailOnLog only for CI environments
This commit is contained in:
Matias Chomicki
2022-12-06 19:38:55 +01:00
committed by GitHub
parent abb49d96b5
commit 7e339decfe
+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);