mirror of
https://github.com/cypress-io/cypress.git
synced 2026-02-05 06:40:56 -06:00
- add needed deps in `ui-components` package - upgrade `@cypress/webpack-preprocessor` - refactor some eslint code, remove unused eslint scripts - rename `build-js` scripts to `build-prod` since they'll only need to run when building for prod / checking for tsc errors
proxy
This package contains the code for Cypress's HTTP interception proxy.
HTTP interception
./lib/http contains the code that intercepts HTTP requests. The bulk of the proxy's behavior is in three files:
request-middleware.tscontains code that manipulates HTTP requests from the browserresponse-middleware.tscontains code that manipulates HTTP responses to the browsererror-middleware.tshandles errors that occur in the request/response cycle
Building
Note: you should not ever need to build the .js files manually. @packages/ts provides require-time transpilation when in development.
yarn lerna run build-prod --scope @packages/proxy --stream
Testing
Tests are located in ./test
To run tests:
yarn lerna run test --scope @packages/proxy --stream
Additionally, the server package contains tests that use the proxy.