if i run ```npx create-serverless-stack@latest my-...
# help
d
if i run
Copy code
npx create-serverless-stack@latest my-cool-app
then cd into the repo and run npm run
Copy code
npm run test
I get If I then run
Copy code
npx create-react-app frontend --use-npm
per the docs and then run
Copy code
npm run test
the tests fail. The error is similar to
Copy code
> .../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 probelm
For now, I’ve updated my package.json with
Copy code
"jest": {
    "testPathIgnorePatterns": [
      "frontend"
    ]
  }
Which is fine I guess? I just want to know if that’s correct
f
Hey @Devin, yeah I think this makes sense.
npm run test
just runs the SST tests. And you can go into
frontend/
and run React tests there.
@thdxr is more familiar w/ jest, lemme see if he has anything to add.
t
yep that looks right
d
Thanks ya’ll!
Do you want a PR in the book that covers that? Or do you think it makes sense to leave that to the reader
f
Ah yeah, a PR would be awesome!