()
| 74 | let sigintHandlerCalled = false; |
| 75 | function sigintHandler() { |
| 76 | const exitWithCode130 = () => { |
| 77 | // Give tests a chance to see that launched process did exit and dispatch any async calls. |
| 78 | if (isUnderTest()) { |
| 79 | // eslint-disable-next-line no-restricted-properties |
| 80 | setTimeout(() => process.exit(130), 1000); |
| 81 | } else { |
| 82 | // eslint-disable-next-line no-restricted-properties |
| 83 | process.exit(130); |
| 84 | } |
| 85 | }; |
| 86 | |
| 87 | if (sigintHandlerCalled) { |
| 88 | // Resort to default handler from this point on, just in case we hang/stall. |
no test coverage detected
searching dependent graphs…