Function
pressNavigationKey
(setup: Awaited<ReturnType<typeof testRender>>, key: "]" | "[")
Source from the content-addressed store, hash-verified
| 210 | } |
| 211 | |
| 212 | async function pressNavigationKey(setup: Awaited<ReturnType<typeof testRender>>, key: "]" | "[") { |
| 213 | await act(async () => { |
| 214 | await setup.mockInput.typeText(key); |
| 215 | await setup.renderOnce(); |
| 216 | await Bun.sleep(0); |
| 217 | }); |
| 218 | } |
| 219 | |
| 220 | async function main() { |
| 221 | const options = parseArgs(process.argv.slice(2)); |
Tested by
no test coverage detected