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:

  1. Download MongoDB
  2. Download Mongosh
  3. Install dependencies using pnpm i or if you use npm, you can delete the pnpm-lock.yaml file and then run npm i
  4. Run the command pnpm infra:start && pnpm start

本文标签: javascriptReferenceError normalizedWhisper is not defined in whisper update testStack Overflow