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

Function stopServer

packages/https-proxy/test/helpers/https_server.ts:42–46  ·  view source on GitHub ↗
(srv: https.Server)

Source from the content-addressed store, hash-verified

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

Callers 1

stopFunction · 0.70

Calls 1

destroyMethod · 0.65

Tested by

no test coverage detected