(paths: BugPathsDto | undefined, over: Partial<Handlers> = {})
| 92 | type Handlers = ReturnType<typeof handlerSet>; |
| 93 | |
| 94 | async function render(paths: BugPathsDto | undefined, over: Partial<Handlers> = {}): Promise<Handlers> { |
| 95 | const handlers: Handlers = { ...handlerSet(), ...over }; |
| 96 | await act(async () => { |
| 97 | root.render( |
| 98 | <BugWizard |
| 99 | project="codeatlasweb-w4b" |
| 100 | target={TARGET} |
| 101 | paths={paths} |
| 102 | status={paths === undefined ? 'loading' : 'ready'} |
| 103 | message="" |
| 104 | onHop={handlers.onHop} |
| 105 | onChangeTarget={handlers.onChangeTarget} |
| 106 | onClose={handlers.onClose} |
| 107 | />, |
| 108 | ); |
| 109 | }); |
| 110 | return handlers; |
| 111 | } |
| 112 | |
| 113 | const at = (testid: string): HTMLElement | null => |
| 114 | container.querySelector<HTMLElement>(`[data-testid="${testid}"]`); |
no test coverage detected