MCPcopy
hub / github.com/resend/react-email / stopWebServer

Function stopWebServer

packages/render/e2e/integrations.spec.ts:79–92  ·  view source on GitHub ↗
(child: child_process.ChildProcess | undefined)

Source from the content-addressed store, hash-verified

77};
78
79const stopWebServer = (child: child_process.ChildProcess | undefined) => {
80 if (!child || child.killed) {
81 return;
82 }
83
84 if (process.platform !== 'win32' && child.pid !== undefined) {
85 try {
86 process.kill(-child.pid);
87 return;
88 } catch {}
89 }
90
91 child.kill();
92};
93
94const startWebServer = async (command: string, url: string, cwd: string) => {
95 const output: string[] = [];

Callers 2

startWebServerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…