Devin
11/06/2021, 6:59 PMnpx create-serverless-stack@latest my-cool-app
then cd into the repo and run npm run
npm run test
I get ✅
If I then run
npx create-react-app frontend --use-npm
per the docs and then run
npm run test
the tests fail. The error is similar to
> .../my-new-app/frontend/src/App.test.js:5:9: error: Unexpected "<"
5 │ render(<App />);
╵ ^
FAIL frontend/src/App.test.js
● Test suite failed to run
Transform failed with 1 error:
.../my-new-app/frontend/src/App.test.js:5:9: error: Unexpected "<"
What is a proper way to set up an app so I can not have this probelmDevin
11/06/2021, 8:04 PM"jest": {
"testPathIgnorePatterns": [
"frontend"
]
}
Which is fine I guess? I just want to know if that’s correctFrank
npm run test
just runs the SST tests. And you can go into frontend/
and run React tests there.Frank
thdxr
11/11/2021, 4:52 AMDevin
11/11/2021, 3:01 PMDevin
11/11/2021, 3:02 PMFrank