MCPcopy Index your code
hub / github.com/nodejs/node / test

Function test

test/sequential/test-resolution-inspect-brk.js:12–22  ·  view source on GitHub ↗
(execArgv)

Source from the content-addressed store, hash-verified

10const path = require('path');
11
12function test(execArgv) {
13 const child = cp.spawn(process.execPath, execArgv);
14
15 child.stderr.once('data', common.mustCall(function() {
16 child.kill('SIGTERM');
17 }));
18
19 child.on('exit', common.mustCall(function(code, signal) {
20 assert.strictEqual(signal, 'SIGTERM');
21 }));
22}
23
24test([
25 '--require',

Callers 1

Calls 3

killMethod · 0.80
onceMethod · 0.45
onMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…