killProcess() — vite Function Reference
Architecture documentation for the killProcess() function in test-utils.ts from the vite codebase.
Entity Profile
Dependency Diagram
graph TD ab58e713_e7b7_aa33_7496_e996c811c230["killProcess()"] c68b21f4_9cd3_3abe_8169_0de2c9650f53["test-utils.ts"] ab58e713_e7b7_aa33_7496_e996c811c230 -->|defined in| c68b21f4_9cd3_3abe_8169_0de2c9650f53 style ab58e713_e7b7_aa33_7496_e996c811c230 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
playground/test-utils.ts lines 381–394
export async function killProcess(
serverProcess: ExecaResultPromise,
): Promise<void> {
if (isWindows) {
try {
const { execaCommandSync } = await import('execa')
execaCommandSync(`taskkill /pid ${serverProcess.pid} /T /F`)
} catch (e) {
console.error('failed to taskkill:', e)
}
} else {
serverProcess.kill('SIGTERM')
}
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does killProcess() do?
killProcess() is a function in the vite codebase, defined in playground/test-utils.ts.
Where is killProcess() defined?
killProcess() is defined in playground/test-utils.ts at line 381.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free