(t, execaMethod, mapPath)
| 130 | const nodePathArguments = ['-p', ['process.env.Path || process.env.PATH']]; |
| 131 | |
| 132 | const testSubprocessNodePath = async (t, execaMethod, mapPath) => { |
| 133 | const nodePath = mapPath(await getNodePath()); |
| 134 | const {stdout} = await execaMethod(...nodePathArguments, {nodePath}); |
| 135 | t.true(stdout.includes(TEST_NODE_VERSION)); |
| 136 | }; |
| 137 | |
| 138 | test.serial('The "nodePath" option impacts the subprocess - execaNode()', testSubprocessNodePath, execaNode, identity); |
| 139 | test.serial('The "nodePath" option impacts the subprocess - "node" option', testSubprocessNodePath, runWithNodeOption, identity); |
nothing calls this directly
no test coverage detected