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.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg4MDE3OTIsIm5iZiI6MTcxODgwMTQ5MiwicGF0aCI6Ii81OTAwMi8yNTQzOTEyMDktZDFmNzljMjQtNjU4OC00OGY2LTgyOTAtYTgzM2JhYTE4M2EyLmdpZj9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjE5VDEyNTEzMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTE1OGMyZDExYTM3ZjkzYTI1NmQzNTk5ZDI1MmYxNGVlZjgxYTRjMjJjNTViMDVhMmNjOTlhNzRmYmIzZGVkN2UmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.y3O2YOqFvrda5Hq5xCW5mA1thwQQn2lf5Bt0x4HqTXg)
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