You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const response = await getExample() //this is an axios request, the response is printing correctly so i know thats working
console.log('response', response)
expect(response).toSatisfyApiSpec()
})
})
What did you expect to happen instead?
I expected the package to compare the response with the api spec. But I am unable to resolve the error.
The text was updated successfully, but these errors were encountered:
Hi @AK3030, thanks for raising this 🙂 this is strange - we have tests covering axios. The error is thrown from here, suggesting that response.request.path is undefined.
Would you mind pasting response, response.request or response.request.path? (whichever is most helpful)
Are you using jest or chai?
Jest
Are you using OpenAPI 2, 3.0.X, or 3.1.0?
3.0.X
Describe the bug clearly
TypeError: The "url" argument must be of type string. Received undefined
Steps to reproduce the bug:
jestOpenAPI(path.join(__dirname, './validationAPISpecs/example.json'))
describe('Example description', () => {
it('tests getExample method', async () => {
})
})
What did you expect to happen instead?
I expected the package to compare the response with the api spec. But I am unable to resolve the error.
The text was updated successfully, but these errors were encountered: