title: ReferenceError: You are trying to `import` a file after the Jest environment has been torn down
body: <p>I have a component that makes use of <code>Animated</code> component from react native. I started writing a test case to simulate <code>onPress</code> of a component, which calls a function that has <code>Animated.timing</code> in it, and <code>setState</code>.</p>
  
  <p>running <code>jest</code> works fine, but the tests never stops running, and one unrelated test case that I've written before never seem to pass now (which passed before). </p>
  
  <p>running <code>jest --watch</code>, I get this error: </p>
  
  <pre><code>ReferenceError: You are trying to `import` a file after the Jest environment has been torn down.
  
        at Function.bezier (node_modules/react-native/Libraries/Animated/src/Easing.js:113:21)
        at ease (node_modules/react-native/Libraries/Animated/src/Easing.js:34:24)
        at TimingAnimation._easing (node_modules/react-native/Libraries/Animated/src/Easing.js:133:18)
        at TimingAnimation.onUpdate (node_modules/react-native/Libraries/Animated/src/animations/TimingAnimation.js:107:45)
  
   RUNS  src/__tests__/SlideDownMenu.test.js
  
  /home/nrion/Desktop/mobile-ui/PriceInsight_app/node_modules/react-native/Libraries/Animated/src/Easing.js:114
        return _bezier(x1, y1, x2, y2);
               ^
  TypeError: _bezier is not a function
      at Function.bezier (/home/nrion/Desktop/mobile-ui/PriceInsight_app/node_modules/react-native/Libraries/Animated/src/Easing.js:224:12)
      at ease (/home/nrion/Desktop/mobile-ui/PriceInsight_app/node_modules/react-native/Libraries/Animated/src/Easing.js:94:21)
      at TimingAnimation._easing (/home/nrion/Desktop/mobile-ui/PriceInsight_app/node_modules/react-native/Libraries/Animated/src/Easing.js:255:16)
      at TimingAnimation.onUpdate (/home/nrion/Desktop/mobile-ui/PriceInsight_app/node_modules/react-native/Libraries/Animated/src/animations/TimingAnimation.js:138:14)
      at ontimeout (timers.js:386:11)
      at tryOnTimeout (timers.js:250:5)
      at Timer.listOnTimeout (timers.js:214:5)
  </code></pre>
  
  <h2>Link to repl</h2>
  
  <p><a href="https://repl.it/repls/PartialGrimyMetadata" rel="noreferrer">https://repl.it/repls/PartialGrimyMetadata</a></p>
  
  <h2>Environment:</h2>
  
  <ul>
  <li>OS: Linux 4.14</li>
  <li>Node: 6.14.2</li>
  <li>Yarn: 1.7.0</li>
  <li>npm: 3.10.10</li>
  <li>Watchman: Not Found</li>
  <li>Xcode: N/A</li>
  <li>Android Studio: Not Found</li>
  </ul>