13 lines
719 B
TypeScript
13 lines
719 B
TypeScript
/** Run the same fake-input gate used for the traced standalone dependency graph. */
|
|||
|
|
import assert from "node:assert/strict";
|
||
|
|
import path from "node:path";
|
||
|
|
import { test } from "node:test";
|
||
|
|
import { fileURLToPath } from "node:url";
|
||
|
|
import { verifyCompressionRuntime } from "../scripts/smoke-compression-runtime.mjs";
|
||
|
|
|
||
|
|
test("Next compression keeps drain listeners bounded through backpressure, payload delivery and disconnect", { timeout: 35_000 }, () => {
|
||
|
|
const root = fileURLToPath(new URL("../", import.meta.url));
|
||
|
|
const report = verifyCompressionRuntime(path.resolve(root));
|
||
|
|
assert.deepEqual(report.cases.map((item: { mode: string }) => item.mode), ["/node", "/web", "/identity", "/no-transform", "/abort"]);
|
||
|
|
});
|