Files
Mike Ryan e251bcac83 test(runtime): enforce shared cross-language conformance
Run the same public HTTP and socket cases against TypeScript and all native
runtimes. Keep native toolchains out of JavaScript-only jobs, require the
dedicated conformance gate, and retain regression evidence and fixture
review rules.
2026-09-11 15:55:31 -07:00

15 lines
480 B
JavaScript

import { createServer } from "node:http";
// Deliberately broken implementation used to prove the harness rejects false success.
const server = createServer((_request, response) => {
response.writeHead(200, { "Content-Type": "application/json" });
response.end("{}");
});
server.listen(0, "127.0.0.1", () =>
process.stdout.write(JSON.stringify({ port: server.address().port }) + "\n"),
);
process.on("SIGTERM", () => {
server.closeAllConnections();
server.close();
});