GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test: add more logs to test-esm-loader-hooks-inspect-wait · nodejs/node@5efe4f7

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test/parallel
    • test-esm-loader-hooks-inspect-wait.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/parallel/test-esm-loader-hooks-inspect-wait.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-esm-loader-hooks-inspect-wait.js
+6-1Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ const { NodeInstance } = require('../common/inspector-helper.js');
1212

1313
async function runTest() {
1414
const main = fixtures.path('es-module-loaders', 'register-loader.mjs');
15+
process.env.NODE_DEBUG = 'esm,async_loader_worker';
1516
const child = new NodeInstance(['--inspect-wait=0'], '', main);
1617

1718
const session = await child.connectInspectorSession();
@@ -24,7 +25,11 @@ async function runTest() {
2425
]);
2526
await session.send({ method: 'NodeRuntime.disable' });
2627
await session.waitForDisconnect();
27-
assert.strictEqual((await child.expectShutdown()).exitCode, 0);
28+
const result = await child.expectShutdown();
29+
assert.deepStrictEqual(result, {
30+
exitCode: 0,
31+
signal: null,
32+
});
2833
}
2934

3035
runTest();

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.