title: Mocking Reactotron for Jest
body: <p>I have set up Reactotron with almost default configuration:</p>
  
  <pre><code>import Reactotron from 'reactotron-react-native';
  import { reactotronRedux } from 'reactotron-redux';
  
  const reactotron = Reactotron
    .configure()
    .useReactNative()
    .use(reactotronRedux())
    .connect();
  
  export default reactotron;
  </code></pre>
  
  <p>And imported it in 'index.js':</p>
  
  <pre><code>if (__DEV__) { import('./app/utils/reactotron'); }
  </code></pre>
  
  <p>But after this, most of Jest tests are failed with the next error: </p>
  
  <pre><code>ReferenceError: WebSocket is not defined
  
     8 |   .useReactNative()
     9 |   .use(reactotronRedux())
  &gt; 10 |   .connect();
       | ^
    11 | 
    12 | export default reactotron;
  
    at createSocket (node_modules/reactotron-react-native/dist/index.js:1:13571)
    at a.value (node_modules/reactotron-core-client/dist/index.js:1:8397)
    at Object.&lt;anonymous&gt; (app/utils/reactotron.js:10:1)
  </code></pre>
  
  <p>It looks like I need to add WebSocket or something else to global variables for tests, but should I do it for all tests or there is any way to make it once for all tests?</p>