MCPcopy Create free account
hub / github.com/webpack/webpack-cli / processKill

Function processKill

test/utils/test-utils.js:23–29  ·  view source on GitHub ↗
(process)

Source from the content-addressed store, hash-verified

21};
22
23const processKill = (process) => {
24 if (isWindows) {
25 exec(`taskkill /pid ${process.pid} /T /F`);
26 } else {
27 process.kill();
28 }
29};
30
31// eslint-disable-next-line jsdoc/reject-any-type
32/** @typedef {Record<string, any>} TestOptions */

Callers 6

writeFunction · 0.85
writeAnswerFunction · 0.85
completeFunction · 0.85
basic.test.jsFile · 0.85
stdin.test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected