mirror of
https://github.com/cypress-io/cypress.git
synced 2026-01-26 08:59:03 -06:00
* patch axios for v8 snapshots * export httpsAgent and httpAgent discretely * set up axios interceptors for logging and error response transformation * use unified error transform fn * create instance api reqs, timeouts, tests * move axios middleware to its own dir & refactor * refactor error handling, enable retries in createInstance * fix invocation of createInstance - not caught by ts because record.js is js * retry on 500 - according to system test, this is expected behavior * resolve snapshots, report retries to stdout * fix cdp connection usage of shouldRetry due to newly unknown error type * axios doesnt fully follow RequestOptions shape when adding request to https agent * note why uri is treated as optional * hail mary on getting axios to work with v8 snapshots * update lockfile, force no-rewrite on more axios files * attempt to fix v8 snapshots * add verbose debugging to api request logging * enable verbose api debugging on server unit tests * fix nock pattern for createInstance * remove request logging unit test - sinon/mocha does not assert correctly * fix a few unit tests * use runAllAsync rather than waiting an arbitrary time for sinon fake timer * move create_instance spec to ts file, remove redundant test * rm debug on ci * clarify comment on change inpackages/network * correct .uri property on patched RequestOptions to be optional * rm unused log_requests.ts, DRY error messages * resolve types with record.ts migration --------- Co-authored-by: Ryan Manuel <ryanm@cypress.io>