Closed
Description
I have a test like this:
test('renders without crashing', () => {
// const div = document.createElement('div');
// ReactDOM.render(<App />, div);
expect(true).toBe(true)
});
when I run it, with npm t
it hangs. here is the output
→ npm t --loglevel=silly
npm info it worked if it ends with ok
npm verb cli [ '/usr/local/Cellar/node/6.6.0/bin/node',
npm verb cli '/usr/local/bin/npm',
npm verb cli 't',
npm verb cli '--loglevel=silly' ]
npm info using [email protected]
npm info using [email protected]
npm verb run-script [ 'pretest', 'test', 'posttest' ]
npm info lifecycle [email protected]~pretest: [email protected]
npm sill lifecycle [email protected]~pretest: no script for pretest, continuing
npm info lifecycle [email protected]~test: [email protected]
> [email protected] test /Users/luizeduardo/js_dev/reg-dashboard
> react-scripts test --env=jsdom
I'm running macOS Sierra with.
I can reproduce it with a new app as well.
the react-scripts:
→ npm ls react-scripts
[email protected] /Users/luizeduardo/js_dev/reg-dashboard
├── [email protected]
``