Initial Commit

This commit is contained in:
2026-05-27 23:47:53 +01:00
parent fbc70f96e6
commit 9b28db724f
18103 changed files with 1600554 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
import { describe, expect, it } from "@suaveplan/testing/runner";
describe("dep-graph", () => {
it("has no circular imports in the main barrel", {
timeout: 30000,
}, async () => {
// Import the main barrel — if this resolves without error, no circular dep crash
const mod = await import("../src/index.js");
expect(typeof mod).toBe("object");
expect(typeof mod.fromArray).toBe("function");
expect(typeof mod.mapStream).toBe("function");
expect(typeof mod.toArray).toBe("function");
expect(typeof mod.pipeline).toBe("function");
});
it("exports StreamError", { timeout: 30000 }, async () => {
const { StreamError, STREAM_CODES } = await import("../src/index.js");
expect(StreamError).toBeDefined();
expect(STREAM_CODES.ABORTED).toBe("STREAM.ABORTED");
});
});