A tool for people curious about the React Server Components protocol rscexplorer.dev/
rsc react
35
fork

Configure Feed

Select the types of activity you want to include in your feed.

try to fix ci

+9 -2
+9 -2
tests/globalSetup.ts
··· 20 20 server = spawn("npx", ["vite", "--port", "5599", "--strictPort"], { 21 21 stdio: "inherit", 22 22 shell: true, 23 + detached: true, 23 24 }); 24 25 25 26 server.on("close", (code) => { ··· 33 34 } 34 35 35 36 export async function teardown(): Promise<void> { 36 - if (server) { 37 - server.kill(); 37 + if (server && server.pid) { 38 + // Kill the entire process group (negative PID) to ensure 39 + // child processes spawned by the shell are also terminated 40 + try { 41 + process.kill(-server.pid, "SIGTERM"); 42 + } catch { 43 + // Process may already be dead 44 + } 38 45 } 39 46 }