This is my __tests__/App.js file:
__tests__/App.js
import React from \'react\'; import ReactDOM from \'react-dom\'; import App from \'../src/containers/App\'; it(\'
For me either of these worked
In package.json file adding test script env flag
"scripts": { "test": "react-scripts test --env=jsdom" }
Using enzyme
import { shallow } from 'enzyme'; it('renders without crashing', () => { shallow(); });