title: Gitlab CI breaking on unit tests
body: <p>Two of my tests are passing locally but not on GitlabCI, and for the life of me I cannot figure out why. </p>
  
  <p>I have read <a href="https://github.com/facebook/jest/issues/4880" rel="nofollow noreferrer">here</a> that macOS is not case sensitive, and the ci might be, so I double checked all the spelling and everything came looks just fine.</p>
  
  <p>Here's the filesystem layout:</p>
  
  <pre><code>  src/
      App.jsx
      App.test.jsx
      components/
        A/
          index.js 
          B/
            C/
              CContainer.jsx 
              CContainer.test.jsx
  </code></pre>
  
  <p>Below is the error code:</p>
  
  <pre><code>FAIL  src/components/A/B/C/CContainer.test.jsx
  
  
  ● Test suite failed to run
  
  Cannot find module './CContainer' from 'CContainer.test.jsx'
  
    at Resolver.resolveModule (../../../tmp/node_modules/jest-resolve/build/index.js:179:17)
    at Object.&lt;anonymous&gt; (src/components/A/B/C/CContainer.test.jsx:3:29)
  </code></pre>
  
  <p>My code from <code>CContainer.test.jsx</code>:</p>
  
  <pre><code>import React from 'react';
  import { shallow } from 'enzyme';
  import { CContainer } from './CContainer';
  
  const props = {
    saveTempUser: () =&gt; '',
    history: {},
    user: {},
  };
  
  it('renders without crashing', () =&gt; {
    shallow(&lt;CContainer {...props} /&gt;);
  });
  </code></pre>
  
  <p>The two files are siblings, and <code>CContainer</code> is simply:</p>
  
  <pre><code>...
  export class CContainer extends Component {
  ...
  }
  ...
  export default connect(mapStateToProps, mapDispatchToProps)(CContainer)
  </code></pre>
  
  <p>What's weird is in the top level <code>App.test.js</code> the same file causes a problem:</p>
  
  <pre><code> FAIL  src/App.test.js
  
  
  ● Test suite failed to run
  
  Cannot find module './B/C/CContainer' from 'index.js'
  
    at Resolver.resolveModule (../../../tmp/node_modules/jest-resolve/build/index.js:179:17)
    at Object.&lt;anonymous&gt; (src/components/A/index.js:4:29)
  </code></pre>
  
  <p>And <code>index.js</code> is just:</p>
  
  <pre><code>import ConnectedCContainer, { CContainer} from './B/C/CContainer'
  ...
  
  
  export {
    ...
    ConnectedCContainer,
    CContainer
  }.
  </code></pre>
  
  <p>Any ideas? I'm currently configuring a local runner to try and debug and will come back with more info when I have some.</p>