()
| 155 | } |
| 156 | |
| 157 | function end(): void { |
| 158 | const main = require(file!); |
| 159 | |
| 160 | if (!main.teardown) { |
| 161 | exitProcess(); |
| 162 | |
| 163 | return; |
| 164 | } |
| 165 | |
| 166 | execFunction(main.teardown, main, [], exitProcess, exitProcess); |
| 167 | } |
| 168 | |
| 169 | function exitProcess(): void { |
| 170 | // Clean up open handles so the process ideally exits gracefully |
no test coverage detected