(t, execaMethod)
| 167 | test.serial('The "nodePath" option is relative to "cwd" when used in the subprocess - "node" option sync', testSubprocessNodePathCwd, runWithNodeOptionSync); |
| 168 | |
| 169 | const testCwdNodePath = async (t, execaMethod) => { |
| 170 | const nodePath = await getNodePath(); |
| 171 | const cwd = path.dirname(path.dirname(nodePath)); |
| 172 | const relativeExecPath = path.relative(cwd, nodePath); |
| 173 | const {stdout} = await execaMethod('--version', [], {nodePath: relativeExecPath, cwd}); |
| 174 | t.is(stdout, `v${TEST_NODE_VERSION}`); |
| 175 | }; |
| 176 | |
| 177 | test.serial('The "nodePath" option is relative to "cwd" - execaNode()', testCwdNodePath, execaNode); |
| 178 | test.serial('The "nodePath" option is relative to "cwd" - "node" option', testCwdNodePath, runWithNodeOption); |
nothing calls this directly
no test coverage detected