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

Function test

test/sequential/test-init.js:39–43  ·  view source on GitHub ↗
(file, expected)

Source from the content-addressed store, hash-verified

37process.env.TEST_INIT = 1;
38
39function test(file, expected) {
40 child.exec(...common.escapePOSIXShell`"${process.execPath}" "${file}"`, common.mustSucceed((out) => {
41 assert.strictEqual(out, expected, `'node ${file}' failed!`);
42 }));
43}
44
45{
46 // Change CWD as we do this test so it's not dependent on current CWD

Callers 4

test-init.jsFile · 0.70
test.jsFile · 0.50

Calls 1

execMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…