(cleanup: () => Promise<unknown>)
| 291 | }; |
| 292 | |
| 293 | const ignoreCleanupFailure = async (cleanup: () => Promise<unknown>): Promise<void> => { |
| 294 | // oxlint-disable-next-line executor/no-promise-catch -- boundary: startup cleanup is best-effort and must not mask the original startup failure |
| 295 | await cleanup().catch(() => {}); |
| 296 | }; |
| 297 | |
| 298 | export async function startServer(opts: StartServerOptions = {}): Promise<ServerInstance> { |
| 299 | const port = opts.port ?? parseInt(process.env.PORT ?? "4788", 10); |
no test coverage detected