mirror of
https://github.com/cypress-io/cypress.git
synced 2026-02-08 00:00:04 -06:00
* chore: add logic to dynamically load new studio functionality * fix types * fix tests * fix * fix tests * fix tests * additional changes to lock things down * clean up code * Update guides/studio-development.md Co-authored-by: Jennifer Shehane <jennifer@cypress.io> * Update protocol-development.md * additional headers * PR comments * Update packages/server/lib/cloud/api/get_app_studio.ts Co-authored-by: Matt Schile <mschile@cypress.io> * Update packages/app/vite.config.mjs * update studio/protocol development guides --------- Co-authored-by: Jennifer Shehane <jennifer@cypress.io> Co-authored-by: Matt Schile <mschile@cypress.io>
network
This package contains networking-related classes and utilities.
Exports
You can see a list of the modules exported from this package in ./lib/index.ts. Here is a brief description of what's available:
agentis a HTTP/HTTPS agent with support for HTTP/HTTPS proxies and keepalive whenever possibleallowDestroycan be used to wrap anet.Serverto add a.destroy()methodblockedis a utility for matching blocked globsconcatStreamis a wrapper aroundconcat-stream@1.6.2that makes it always yield aBufferconnectcontains utilities for making network connections, includingcreateRetryingSocketcorscontains utilities for Cross-Origin Resource Sharinguricontains utilities for URL parsing and formatting
See the individual class files in ./lib for more information.
Building
Note: you should not ever need to build the .js files manually. @packages/ts provides require-time transpilation when in development.
yarn workspace @packages/network build-prod
Testing
Tests are located in ./test
To run tests:
yarn workspace @packages/network test
yarn workspace @packages/network test-watch
yarn workspace @packages/network test-debug