(t, execaMethod, mapPath)
| 86 | const TEST_NODE_VERSION = '16.0.0'; |
| 87 | |
| 88 | const testNodePath = async (t, execaMethod, mapPath) => { |
| 89 | const nodePath = mapPath(await getNodePath()); |
| 90 | const {stdout} = await execaMethod('--version', [], {nodePath}); |
| 91 | t.is(stdout, `v${TEST_NODE_VERSION}`); |
| 92 | }; |
| 93 | |
| 94 | test.serial('The "nodePath" option can be used - execaNode()', testNodePath, execaNode, identity); |
| 95 | test.serial('The "nodePath" option can be a file URL - execaNode()', testNodePath, execaNode, pathToFileURL); |
nothing calls this directly
no test coverage detected