Closed
Description
Description
Steps:
- create a fresh app
- anywhere inside
App.js
, add the following code
function* test() {
yield ((a) => 42)
}
- run
npm run test
=> works - run
npm run test -- --coverage
=> crashes
Expected behavior
This syntax is valid js, it works in the browser and with tests without coverage so I expect it to work with coverage activated
Actual behavior
Environment
npm ls react-scripts
[email protected] /Users/gael/Desktop/test
└── [email protected]
node -v
:
v6.4.0
npm -v
:
3.10.6
- Operating system: OSX 10.12.1
- Browser and version: N/A
I guess this is a Jest issue, so I ping @cpojer ?