MCPcopy Index your code
hub / github.com/tinyplex/tinybase / render

Function render

test/unit/core/ui-solid/ui-solid-dom.test.tsx:42–54  ·  view source on GitHub ↗
(getComponent: () => JSXElement)

Source from the content-addressed store, hash-verified

40const nullEvent = (_offset: number) => null;
41const act = (callback: () => void) => callback();
42const render = (getComponent: () => JSXElement) => {
43 const container = document.createElement('div');
44 document.body.appendChild(container);
45 const unmount = solidRender(getComponent, container);
46 return {
47 container,
48 getAllByRole: (role: string) => getAllByRole(container, role),
49 unmount: () => {
50 unmount();
51 container.remove();
52 },
53 };
54};
55
56beforeEach(() => {
57 store = createStore()

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…