npm i
npm run dev
npm test
path | description | type |
---|---|---|
”/” | health check | GET |
“/character” | create char | POST |
/character
body must be:{ name: "Name with letters and or spaces", alignment: "Sith" | "Jedi" | "Grey Jedi" }
After running the tests I’m getting this error:
Ran all test suites.
Jest did not exit one second after the test run has completed.
This usually means that there are asynchronous operations that weren't stopped in your tests. Consider running Jest with `--detectOpenHandles` to troubleshoot this issue.