feat(frontend): register schema-linking widget + response summary
This commit is contained in:
@@ -13,3 +13,9 @@ test("resolve falls back for unknown kind and shows the JSON", () => {
|
||||
render(<Comp descriptor={{ id: "u1", widget: "totally-unknown", title: "X" } as any} onRespond={() => {}} />);
|
||||
expect(screen.getByText(/Unsupported widget/i)).toBeInTheDocument();
|
||||
});
|
||||
|
||||
test("index registers the schema-linking widget", async () => {
|
||||
await import("./index");
|
||||
const Comp = resolve("schema-linking");
|
||||
expect(Comp.name).toBe("SchemaLinkingGateWidget");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user