Remove IS_TEST env constant

This commit is contained in:
Dan Abramov
2024-12-13 03:52:03 +00:00
parent 2a26e396f8
commit 8fa630ab6c
8 changed files with 10 additions and 12 deletions
+1 -2
View File
@@ -5,9 +5,8 @@ import {LogBox} from 'react-native'
import {registerRootComponent} from 'expo'
import App from '#/App'
import {IS_TEST} from '#/env'
if (IS_TEST) {
if (process.env.NODE_ENV === 'test') {
LogBox.ignoreAllLogs() // suppress all logs in tests
} else {
LogBox.ignoreLogs(['Require cycle:']) // suppress require-cycle warnings, it's fine