import { test } from "node:test"; import assert from "node:assert/strict"; import { makeSafeController } from "./safeStreamController"; // Run with: // pnpm --filter yt-dlp-transcript-common exec tsx --test lib/safeStreamController.test.ts // // The guard the media file route and the job log streams wrap their // controllers in. A consumer that goes away (a scrubbing