Jest enzyme shallow unexpected token < : <p>I am trying to use enzyme for testing react components, but cant get started even with the most basic example.</p>

<pre><code>import React from 'react'
import { shallow,render,mount,configure } from 'enzyme'
import Adapter from 'enzyme-adapter-react-16';
import {LoginPage} from '../../../app/components/login/LoginPage'

configure({ adapter: new Adapter() });

test('should say hello',() =&gt; {
    const loginPage = shallow(&lt;LoginPage /&gt;)
    expect(loginPage.contains('Hello').toBe(true))
})
</code></pre>

<p>when running this, I get the following error:-</p>

<pre><code>Test suite failed to run

    D:/code/github/metallica2/metallica/client/src/app/__tests__/components/login/LoginPage.test.js: Unexpected token (9
:30)
         7 |
         8 | test('should say hello',() =&gt; {
      &gt;  9 |     const loginPage = shallow(&lt;LoginPage /&gt;)
           |                               ^
        10 |     expect(loginPage.contains('Hello').toBe(true))
        11 | })
</code></pre>

<p>What am I doing wrong here ?</p>

<p>Thanks,</p>

<p>Amar</p>
