Initial Commit
This commit is contained in:
@@ -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();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user