MCPcopy Create free account
hub / github.com/testing-library/user-event / PointerOptions

Interface PointerOptions

src/utils/misc/hasPointerEvents.ts:7–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5 * on pointer-events property
6 */
7export declare interface PointerOptions {
8 /**
9 * When set to `true` the event skips checking if any element
10 * in the DOM-tree has `'pointer-events: none'` set. This check is
11 * costly in general and very costly when rendering large DOM-trees.
12 * Can be used to speed up tests.
13 * Default: `false`
14 * */
15 skipPointerEventsCheck?: boolean
16}
17
18export function hasPointerEvents(element: Element): boolean {
19 const window = getWindowFromNode(element)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected