in src/test-routes/http-responses.ts [392:403]
function isRetryRequest(req: MockRequest, code: number, method: HttpMethod) {
const cookies = req.headers["cookie"];
let cookieMatch;
if (cookies) {
cookieMatch = /tries=(\w+)/.exec(cookies);
if (cookieMatch && cookieMatch[1] && cookieMatch[1] === code + "_" + method) {
return true;
}
}
return false;
}