Tests case:
nock('https://xxxx.com').get('/').times(1).reply(200, { mock: 1 });
// first times: print { mock: 1 }
// second and third times: throw error `Nock: No match for request`
for (let i = 0; i < 3; i++) {
const {data} = await axios({
url: 'https://xxxx.com/',
method: 'GET',
});
console.log(data);
}
In README, means you can get real response from url you specified but not an error.
But in your tests cases:
It should get error when repeating.
Version
Tests case:
In README, means you can get real response from url you specified but not an error.
But in your tests cases:
It should get error when repeating.
Version