I am trying to simulate a response to this API url
http:
Combinations of URL parameters may vary. I am trying to intercept this request and respond with an empty object.
nock('http://api.myapihost.com') .persist() .get('/images', '*') .reply(200, {});
I get this error message when a test script runs:
Uncaught Error: Nock: No match for HTTP request GET /images?height=2500
How to configure nock to match any combination of URL parameters?
source share