fix: align draft/outbound typings and tests

This commit is contained in:
Peter Steinberger
2026-02-22 08:03:05 +00:00
parent 0ae7f962f9
commit 0c1a52307c
12 changed files with 49 additions and 33 deletions

View File

@@ -1,4 +1,4 @@
import { createServer } from "node:http";
import { createServer, type IncomingMessage, type ServerResponse } from "node:http";
import type { AddressInfo } from "node:net";
import { afterEach, beforeEach, describe, expect, it } from "vitest";
import {
@@ -8,7 +8,7 @@ import {
import { getFreePort } from "./test-port.js";
async function withRelayServer(
handler: Parameters<typeof createServer>[0],
handler: (req: IncomingMessage, res: ServerResponse) => void,
run: (params: { port: number }) => Promise<void>,
) {
const port = await getFreePort();