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("react-network-libp2p-demo dep-graph", () => {
it("loads index and exposes every public surface", async () => {
const mod = await import("../src/index.js");
// Errors
expect(mod.REACT_LIBP2P_DEMO_CODES).toBeDefined();
expect(mod.ReactLibp2pDemoError).toBeDefined();
// Hook + schemas + helpers
expect(mod.useLibp2pDemo).toBeDefined();
expect(mod.UseLibp2pDemoOptionsSchema).toBeDefined();
expect(mod.wirePeerEvents).toBeDefined();
// Components
expect(mod.Libp2pDemo).toBeDefined();
expect(mod.LogPanel).toBeDefined();
expect(mod.NodeControls).toBeDefined();
expect(mod.NodeStatusPanel).toBeDefined();
expect(mod.PeerInteractionPanel).toBeDefined();
expect(mod.PeerList).toBeDefined();
});
});