(processCommand)
| 22 | }; |
| 23 | |
| 24 | function isProcessAReactApp(processCommand) { |
| 25 | return /^node .*react-scripts\/scripts\/start\.js\s?$/.test(processCommand); |
| 26 | } |
| 27 | |
| 28 | function getProcessIdOnPort(port) { |
| 29 | return execFileSync('lsof', ['-i:' + port, '-P', '-t', '-sTCP:LISTEN'], execOptions) |
no test coverage detected