admin管理员组文章数量:1398316
I'm currently learning about testing with Jest, and there's one test in an 'it' block that's failing. The issue happens when I try to update a task, but the task doesn't have an ID (it's null).
I'm working on testing the to-do list endpoint for updating tasks, but it's not working because it can't find a valid ID. What I want to achieve is being able to update the task using a valid ID.
Thanks in advance for taking the time to help answer this. Here's my env file:
JWT_SECRET=dummy
MONGODB_URI=mongodb://sakti26:[email protected]:27017/whispering-database?authSource=admin
PORT=3000
MONGO_INITDB_ROOT_USERNAME=sakti26
MONGO_INITDB_ROOT_PASSWORD=testing123
How to run the code:
- Download MongoDB
- Download Mongosh
- Install dependencies using pnpm i or if you use npm, you can delete the pnpm-lock.yaml file and then run npm i
- Run the command pnpm infra:start && pnpm start
本文标签: javascriptReferenceError normalizedWhisper is not defined in whisper update testStack Overflow
版权声明:本文标题:javascript - ReferenceError: normalizedWhisper is not defined in whisper update test - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744161835a2593374.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论