(t, execaMethod)
| 228 | test.serial('The "nodeOptions" option allows --inspect with a different port even when defined by current process - "node" option', testInspectDifferentPort, 'nodeOption'); |
| 229 | |
| 230 | const testInspectSamePort = async (t, execaMethod) => { |
| 231 | const {stdout, stdio} = await spawnNestedExecaNode(['--inspect=9226'], '', execaMethod, '--inspect=9226'); |
| 232 | t.is(stdout, foobarString); |
| 233 | t.true(stdio[3].includes('address already in use')); |
| 234 | }; |
| 235 | |
| 236 | test.serial('The "nodeOptions" option forbids --inspect with the same port when defined by current process - execaNode()', testInspectSamePort, 'execaNode'); |
| 237 | test.serial('The "nodeOptions" option forbids --inspect with the same port when defined by current process - "node" option', testInspectSamePort, 'nodeOption'); |
nothing calls this directly
no test coverage detected