(text: string)
| 24 | }); |
| 25 | afterEach(async () => { await act(async () => root.unmount()); container.remove(); vi.restoreAllMocks(); vi.unstubAllGlobals(); }); |
| 26 | const button = (text: string) => [...container.querySelectorAll<HTMLButtonElement>('button')].find(item => item.textContent === text)!; |
| 27 | const click = async (text: string) => { await act(async () => button(text).click()); }; |
| 28 | const input = () => container.querySelector<HTMLInputElement>('#config-CBM_WORKERS')!; |
| 29 | const edit = async (value: string) => { await act(async () => { Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, 'value')!.set!.call(input(), value); input().dispatchEvent(new Event('input', { bubbles: true })); }); }; |
no outgoing calls
no test coverage detected