(instance: Instance | undefined)
| 92 | } |
| 93 | |
| 94 | async function stop(instance: Instance | undefined): Promise<void> { |
| 95 | if (!instance) return; |
| 96 | await instance.server.close(); |
| 97 | instance.api.close(); |
| 98 | instance.cg.destroy(); |
| 99 | fs.rmSync(instance.dir, { recursive: true, force: true }); |
| 100 | } |
| 101 | |
| 102 | /* ======================================================================== */ |
| 103 | /* A routed Go service — the issue's acceptance case */ |
no test coverage detected