How can I use this library with supertest? I want to test my own API endpoint, and inside the API, I call a third-party provider. I want to record only the response of the third-party provider API.
await vcr.useCassette('my-cassette', async () => {
await supertest(server)
.post('/my-endpoints') // <-- inside this endpoint, I call 3rd party API.
.expect(200);
}):
But I got a match not found because it records my own API endpoint result.
Hello!
How can I use this library with
supertest
? I want to test my own API endpoint, and inside the API, I call a third-party provider. I want to record only the response of the third-party provider API.But I got a match not found because it records my own API endpoint result.