From e2a7965e438db9f70d76d2d7a911aa4c4a42c122 Mon Sep 17 00:00:00 2001 From: dan Date: Fri, 13 Dec 2024 17:14:41 +0000 Subject: Gate bitdrift integration (#7088) * Move Statsig init call earlier * Gate Bitdrift init call * Remove IS_TEST env constant * Mock statsig --- index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'index.js') diff --git a/index.js b/index.js index 2f13ce1ea..f5f3a07ac 100644 --- a/index.js +++ b/index.js @@ -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 -- cgit 1.4.1