(props: Partial<ComponentProps<typeof CommandTest>> = {})
| 9 | const kbd = getTestKbd(); |
| 10 | |
| 11 | function setup(props: Partial<ComponentProps<typeof CommandTest>> = {}) { |
| 12 | // oxlint-disable-next-line no-explicit-any |
| 13 | const returned = render(CommandTest, props as any); |
| 14 | const input = page.getByTestId("input"); |
| 15 | const root = page.getByTestId("root"); |
| 16 | const list = page.getByTestId("list"); |
| 17 | return { |
| 18 | ...returned, |
| 19 | root, |
| 20 | input, |
| 21 | list, |
| 22 | }; |
| 23 | } |
| 24 | |
| 25 | it("should select the first item by default", async () => { |
| 26 | setup(); |
no outgoing calls
no test coverage detected
searching dependent graphs…