From 7e339decfe3d3a75af55ed63fc4f665b58899e83 Mon Sep 17 00:00:00 2001 From: Matias Chomicki Date: Tue, 6 Dec 2022 19:38:55 +0100 Subject: [PATCH] JavaScript Unit Tests: Enable shouldFailOnLog only for CI environments (#59901) Tests: enable shouldFailOnLog only for CI environments --- public/test/setupTests.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/test/setupTests.ts b/public/test/setupTests.ts index 20052ded8bc..31f322f1d4a 100644 --- a/public/test/setupTests.ts +++ b/public/test/setupTests.ts @@ -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);