mirror of
https://github.com/cypress-io/cypress.git
synced 2026-01-10 16:50:03 -06:00
* chore: convert @packages/https-proxy to TypeScript and use vitest instead of mocha * chore: address comments from code review * Update packages/https-proxy/vitest.config.ts
16 lines
746 B
Markdown
16 lines
746 B
Markdown
# HTTPS Proxy
|
|
|
|
This package is responsible for acting as a CA authority and generating dynamic certificates on the fly for outbound HTTPS connections.
|
|
|
|
This package enables Cypress to inspect and modify bytes coming in and out of the browser.
|
|
|
|
## Testing
|
|
|
|
Since `vitest` runs specs in parallel by default, we get collisions in the `proxy.spec.ts` and `server.spec.ts` as there is a proxy server running in the background for `proxy.spec.ts` while we are testing the implements of `server.spec.ts`. These tests cannot run at the same time, hence why we leverage the `no-file-parallelism` option.
|
|
|
|
```bash
|
|
yarn workspace @packages/https-proxy test
|
|
yarn workspace @packages/https-proxy test-watch
|
|
yarn workspace @packages/https-proxy test-debug
|
|
```
|