From cef9f64f133a7b372c7c47b32c3ecd03f0012e8d Mon Sep 17 00:00:00 2001 From: Josh Hunt Date: Thu, 13 Apr 2023 17:33:05 +0100 Subject: [PATCH] Chore: Restore shouldFailOnLog being enabled only during CI (#66498) --- 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 ac9da47b115..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);