(getComponent: () => JSXElement)
| 40 | const nullEvent = (_offset: number) => null; |
| 41 | const act = (callback: () => void) => callback(); |
| 42 | const 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 | |
| 56 | beforeEach(() => { |
| 57 | store = createStore() |
no outgoing calls
no test coverage detected
searching dependent graphs…