(file, expected)
| 37 | process.env.TEST_INIT = 1; |
| 38 | |
| 39 | function 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 |
no test coverage detected
searching dependent graphs…