Replies: 2 comments
-
I suspect my problem is #2397 |
Beta Was this translation helpful? Give feedback.
0 replies
-
I think I have two problems actually:
someone has pointed me to this: this is satisfactory for the error response in the title so I am closing. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Can someone tell me what I'm doing wrong here
e2e/homepage.cy.js
my expected test behavior is:
![cypress-weather-app3](https://private-user-images.githubusercontent.com/59002/254391209-d1f79c24-6588-48f6-8290-a833baa183a2.gif?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQxMjU1MTYsIm5iZiI6MTcyNDEyNTIxNiwicGF0aCI6Ii81OTAwMi8yNTQzOTEyMDktZDFmNzljMjQtNjU4OC00OGY2LTgyOTAtYTgzM2JhYTE4M2EyLmdpZj9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODIwVDAzNDAxNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTY1MmYyYmU4MWZmYmVmMTdkMzQyYzhhYzAxMDRiMjI0Mjg3MTgxOWUwZTExYWFmMWQ4ZjdiZGE2OTBjOTk0ZWImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.xz1e7x09BNTT1VIHLvBsmO7MweWTsYOI3REZlQ9B2ts)
However, when add the
nock('https://api.openweathermap.org')
, my test fails with:I debugged into scope.js where the error is and all I could figure out what that
URL
is undefined here... but why?the syntax looks correct me based on what I am comparing to in https://www.npmjs.com/package/nock#usage
Beta Was this translation helpful? Give feedback.
All reactions