Skip to content

Commit

Permalink
do not use Sentry on E2E env
Browse files Browse the repository at this point in the history
  • Loading branch information
joaoloureirop committed Oct 3, 2024
1 parent a5bef50 commit 44717cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ setupSentry();
import { AppRegistry, LogBox } from 'react-native';
import Root from './app/components/Views/Root';
import { name } from './app.json';
import { isTest } from './app/util/test/utils.js';
import { isE2E } from './app/util/test/utils.js';


import { Performance } from './app/core/Performance';
Expand Down Expand Up @@ -90,5 +90,5 @@ if (IGNORE_BOXLOGS_DEVELOPMENT === 'true') {
*/
AppRegistry.registerComponent(name, () =>
// Disable Sentry for E2E tests
isTest ? Root : Sentry.wrap(Root),
isE2E ? Root : Sentry.wrap(Root),
);

0 comments on commit 44717cc

Please sign in to comment.