Not completely sure this is an issue of this repo, could be a jest's one. I'm reporting it here because it could be a configuration problem.
Description
Running npm test fails when using async/await.
Expected behavior
The test runs
Actual behavior
I receive an error:
● Test suite failed to run
/src/merchants.js: Expected type "Expression" with option {}
at Object.t.(anonymous function) [as assertExpression] (node_modules/babel-types/lib/index.js:362:13)
at Array.forEach (native)
Environment
Run these commands in the project folder and fill in their results:
Reproducible Demo
Just a new "cra" project, with an async/await function tested.
I have a demonstration here, just git clone, npm install and npm test.
Not completely sure this is an issue of this repo, could be a
jest's one. I'm reporting it here because it could be a configuration problem.Description
Running
npm testfails when usingasync/await.Expected behavior
The test runs
Actual behavior
I receive an error:
Environment
Run these commands in the project folder and fill in their results:
npm ls react-scripts: v0.8.1node -v: v6.9.1npm -v: v3.10.8Operating system: Fedora 24
Browser and version: --
Reproducible Demo
Just a new "cra" project, with an
async/awaitfunction tested.I have a demonstration here, just
git clone,npm installandnpm test.