MCPcopy Create free account
hub / github.com/cypress-io/cypress / stop

Function stop

packages/https-proxy/test/helpers/https_server.ts:41–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39}
40
41export const stop = async () => {
42 const stopServer = (srv: https.Server) => {
43 return new Promise<Error | undefined>((resolve) => {
44 srv.destroy(resolve)
45 })
46 }
47
48 await Promise.all(servers.map((server) => stopServer(server)))
49
50 servers = []
51}

Callers

nothing calls this directly

Calls 1

stopServerFunction · 0.70

Tested by

no test coverage detected