DEV Community

Discussion on: Testing React Hook State Changes

Collapse
 
timurcatakli profile image
Timur Catakli

I am getting following error after npm install.

SyntaxError: Unexpected identifier

      1 | import React from 'react';
    > 2 | import setupMockStates from 'jest-react-hooks-mock';
        | ^
      3 | import { shallow } from 'enzyme';