({
touches = [],
preventDefault = () => undefined,
stopPropagation = () => undefined,
}: ReactTouchEventBuilderOptions = {})
| 331 | } |
| 332 | |
| 333 | export function buildReactTouchEvent({ |
| 334 | touches = [], |
| 335 | preventDefault = () => undefined, |
| 336 | stopPropagation = () => undefined, |
| 337 | }: ReactTouchEventBuilderOptions = {}): TestReactTouchEvent<HTMLDivElement> { |
| 338 | const reactTouches = buildTouchList(touches); |
| 339 | |
| 340 | return { |
| 341 | preventDefault, |
| 342 | stopPropagation, |
| 343 | touches: reactTouches, |
| 344 | }; |
| 345 | } |
| 346 | |
| 347 | export function buildThreePointerEvent({ |
| 348 | instanceId, |
no test coverage detected