/* @flow strict */

let Reactotron; // eslint-disable-line import/no-mutable-exports

if (__DEV__ && !__TEST__) {
  // eslint-disable-next-line global-require, import/no-extraneous-dependencies
  Reactotron = require('reactotron-react-native').default;
  // eslint-disable-next-line global-require, import/no-extraneous-dependencies
  const { reactotronRedux } = require('reactotron-redux');
  Reactotron.configure()
    .useReactNative() // use all built-in react native plugins
    .use(reactotronRedux())
    .connect();
}

export default Reactotron;

/* @flow strict */

let Reactotron; // eslint-disable-line import/no-mutable-exports

const inTest = typeof __TEST__ !== 'undefined' && __TEST__;

if (__DEV__ && !inTest) {
  // eslint-disable-next-line global-require, import/no-extraneous-dependencies
  Reactotron = require('reactotron-react-native').default;
  // eslint-disable-next-line global-require, import/no-extraneous-dependencies
  const { reactotronRedux } = require('reactotron-redux');
  Reactotron.configure()
    .useReactNative() // use all built-in react native plugins
    .use(reactotronRedux())
    .connect();
}

export default Reactotron;

Fix the new Jest check to not break dev, oops.