I’m following the excellent foundation certificate in test automation.
I have hit upon an error on installing the items requested in the course documentation a Jest error that “No files found in /Users/agoodall/Personalproj/mot-cert-support-app-js.” occurs.
I have checked the config and the pattern matches where the tests should exist. Bit stumped.
No tests found, exiting with code 1
Run with `--passWithNoTests` to exit with code 0
No files found in /Users/agoodall/Personalproj/mot-cert-support-app-js.
Make sure Jest's configuration does not exclude this directory.
To set up Jest, make sure a package.json file exists.
Jest Documentation: https://jestjs.io/docs/configuration
Files: "/Users/agoodall/Personalproj/mot-cert-support-app-js/test/specs/test.e2e.js"
Process finished with exit code 1
Just in case you haven’t tried, try to ask ChatGPT it helps me many times with my programming and automation. Unfortunately, I can’t help you with this because I don’t have any experience with using Jest.
Good luck with finding the solutions for this error
Off-topic:
My problem with my repos was that I used to have an inner conflict and did not want to show public what beginner git errors or coding errors I might have done, so after I got it working, I deleted the repo to erase the history.
Now I look different to it and would explain it as a good learning skill