mirror of
https://github.com/cypress-io/cypress.git
synced 2026-02-15 03:31:18 -06:00
* use fallback customTlds regex for parse-domain this ensures that tlds which parse-domain does not recognize can still work as tlds for the purposes of cookie matching, etc * add POST tests for Domain=superdomain * add local.cypress.test to 2_cookies_spec * move parse-domain, getSuperDomain logic from driver to network * move test urls to variables Co-authored-by: Jennifer Shehane <jennifer@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()methodblacklistis a utility for matching glob blacklistsconcatStreamis 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 lerna run build-prod --scope @packages/network --stream
Testing
Tests are located in ./test
To run tests:
yarn lerna run test --scope @packages/network --stream
yarn lerna run test-watch --scope @packages/network --stream
yarn lerna run test-debug --scope @packages/network --stream