Closed rulila52 closed 2 years ago
We can use query, in which, using params, we can perform the necessary actions.
interceptor = nock(baseurl).get(dynamicPath) ..query((params) => true)...
But what if I need to check it by path params (https://myUrl/myParam )? Is it possible to access the intercepted url?
Hey @rulila52,
Library supports matchers for url path: nock(baseUrl).get(startsWith('/myUrl/')).
nock(baseUrl).get(startsWith('/myUrl/'))
Is that work for you?
We can use query, in which, using params, we can perform the necessary actions.
But what if I need to check it by path params (https://myUrl/myParam )? Is it possible to access the intercepted url?