I’m stuck with 30 Days of Postman, Day 11 “Monitoring”. When executing the submit request, I get the following test result: "Failed: Tests added correctly | TypeError: Cannot read properties of undefined (reading 'find'), see screenshot.
My JavaScript tests in the “should I water the plants?” GET request are correct in my opinion.
What is the problem here? The problem seems to appear in the find method with an undefined collection.item[0].item or hygroRequest.event or waterRequest.event.
Thanks for the hint - I placed all three tests under the “should I water the plants” GET request instead of placing the third test under the POST request (as required in the task definition). Problem solved