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
it.only('Should support retries',async()=>{nock('https://unstable.com').get('/v1/unstable').times(1).reply(StatusCodes.INTERNAL_SERVER_ERROR).get('/v1/unstable').times(1).reply(StatusCodes.OK);constfetch=createFetch(got.extend({retry: {limit: 5,methods: ['GET'],},}));const{ status }=awaitfetch('https://unstable.com/v1/unstable',{method: 'GET',});expect(status).toEqual(StatusCodes.OK);});
Is fails like this:
createFetch
✕ Should support retries (16 ms)
● RestDataSource › createFetch › Should support retries
expect(received).toEqual(expected) // deep equality
Expected: 200
Received: 500
85 | });
86 |> 87 | expect(status).toEqual(StatusCodes.OK);| ^
88 | });
89 | });
90 | });
The text was updated successfully, but these errors were encountered:
Test case:
Is fails like this:
The text was updated successfully, but these errors were encountered: