title: How is it possible to make mocha work without having to use commonJS?
body: <p>I am currently trying to learn how testing works and how to do it with mocha on react native.
  This is a test from a tutorial I found:</p>
  <pre><code>import React from 'react';
  import Enzyme, { shallow } from 'enzyme';
  import Adapter from 'enzyme-adapter-react-16';
  import { Text } from 'react-native';
  import { expect } from 'chai';
  
  import App from './App';
  
  Enzyme.configure({ adapter: new Adapter() });
  
  describe('&lt;App&gt;', () =&gt; {
    let wrapper;
  
    beforeEach(() =&gt; {
      wrapper = shallow(&lt;App /&gt;);
    });
    it('renders default Text', () =&gt; {
      expect(wrapper.find(Text)).to.have.lengthOf(3);
    });
  });
  </code></pre>
  <p>My problem is that whenever I run the test I get his back:</p>
  <pre><code>import React from 'react';
  ^^^^^^
  
  SyntaxError: Cannot use import statement outside a module
  
  </code></pre>
  <p>When I change the import statements to require, I then get this error:</p>
  <pre><code> wrapper = shallow(&lt;App /&gt;);
                        ^
  
  SyntaxError: Unexpected token '&lt;'
  
  </code></pre>
  <p>I don't really understand how I can make mocha work on react native... or could someone recommend some resources please?</p>