Chore: Don't fail tests on console logs at all during local dev (#67313)

This commit is contained in:
Josh Hunt 2023-04-27 11:06:11 +01:00 committed by GitHub
parent 334ecd1be7
commit 7460a53ab9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,9 +5,13 @@ import { initReactI18next } from 'react-i18next';
import { matchers } from './matchers';
failOnConsole({
shouldFailOnLog: process.env.CI ? true : false,
});
if (process.env.CI) {
failOnConsole({
shouldFailOnLog: true,
shouldFailOnDebug: true,
shouldFailOnInfo: true,
});
}
expect.extend(matchers);