Devin
10/09/2021, 4:59 PMnpm run test
at the project root i get
cannot find module babel-jest
with a project path pointing to:
node_modules/@serverless-stack/cli/scripts/util/babelJestTransform.js
if I install babel and drop in a config
babelJest.createTransformer is not a function
also in the CLI.
How i got here was I added a test in the react app, then deploy’s broke on Seed.run
see the previous thread here. At that time, at least the tests worked for the App, just not the react app.
https://serverless-stack.slack.com/archives/C01JG3B20RY/p1633213092119300Frank
Devin
10/18/2021, 2:36 PMthdxr
10/18/2021, 2:36 PMDevin
10/18/2021, 2:38 PMthdxr
10/18/2021, 2:38 PMthdxr
10/18/2021, 2:38 PMDevin
10/18/2021, 2:39 PMthdxr
10/18/2021, 2:39 PMthdxr
10/18/2021, 2:40 PMsst test
personally, just call into jest directlyDevin
10/18/2021, 2:40 PMDevin
10/18/2021, 2:40 PMthdxr
10/18/2021, 2:46 PMsst.json
package.json
backend/
frontend/
I tend to have a package.json in both backend + frontend with a specific test command in eachthdxr
10/18/2021, 2:46 PMthdxr
10/18/2021, 2:46 PMDevin
10/18/2021, 2:54 PM