(
type: string,
options: {
clientX?: number;
clientY?: number;
pointerId?: number;
pointerType?: string;
} = {}
)
| 13 | |
| 14 | // Helper to create a PointerEvent with required properties |
| 15 | function createPointerEvent( |
| 16 | type: string, |
| 17 | options: { |
| 18 | clientX?: number; |
| 19 | clientY?: number; |
| 20 | pointerId?: number; |
| 21 | pointerType?: string; |
| 22 | } = {} |
| 23 | ): PointerEvent { |
| 24 | return new PointerEvent(type, { |
| 25 | clientX: options.clientX ?? 0, |
| 26 | clientY: options.clientY ?? 0, |
| 27 | pointerId: options.pointerId ?? 1, |
| 28 | pointerType: options.pointerType ?? 'mouse', |
| 29 | bubbles: true, |
| 30 | }); |
| 31 | } |
| 32 | |
| 33 | // Helper to create a mock React PointerEvent with nativeEvent |
| 34 | function createMockReactPointerEvent( |
no outgoing calls
no test coverage detected
searching dependent graphs…