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

Function testNoServerNoCrash

test/parallel/test-inspector-debug-end.js:7–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5const { NodeInstance } = require('../common/inspector-helper.js');
6
7async function testNoServerNoCrash() {
8 console.log('Test there\'s no crash stopping server that was not started');
9 const instance = new NodeInstance([],
10 `process._debugEnd();
11 process.exit(42);`);
12 assert.strictEqual((await instance.expectShutdown()).exitCode, 42);
13}
14
15async function testNoSessionNoCrash() {
16 console.log('Test there\'s no crash stopping server without connecting');

Callers 1

runTestFunction · 0.85

Calls 2

expectShutdownMethod · 0.95
logMethod · 0.45

Tested by

no test coverage detected