MCPcopy Create free account

hub / github.com/testing-library/user-event / functions

Functions369 in github.com/testing-library/user-event

↓ 33 callersFunctionsetup
( ui: string, { eventHandlers, focus, selection, ...options }: Parameters<typeof render>
tests/_helpers/setup.ts:90
↓ 23 callersFunctionrender
( ui: string, { eventHandlers, focus, selection, }: { eventHandlers?: EventHandlers
tests/_helpers/setup.ts:7
↓ 22 callersFunctionisElementType
( element: Element, tag: T | T[], props?: P, )
src/utils/misc/isElementType.ts:3
↓ 20 callersFunctiongetEvents
( type?: T, )
tests/_helpers/listeners.ts:109
↓ 17 callersFunctiondescribe
(val: unknown)
src/utils/misc/getWindow.ts:16
↓ 16 callersFunctionsetupDirect
( { keyboardState, pointerState, ...options }: DirectOptions & {keyboardState?: System, pointe
src/setup/setup.ts:99
↓ 14 callersFunctiongetEventSnapshot
()
tests/_helpers/listeners.ts:117
↓ 13 callersFunctiongetUIValue
(element: HTMLInputElement | HTMLTextAreaElement)
src/document/UI.ts:48
↓ 12 callersFunctioneventWasFired
(eventType: keyof DocumentEventMap)
tests/_helpers/listeners.ts:94
↓ 12 callersFunctiongetWindow
(node: Node)
src/utils/misc/getWindow.ts:1
↓ 10 callersFunctioncreateConfig
( options: Options = {}, defaults: Required<Options> = defaultOptionsSetup, node?: Node, )
src/setup/setup.ts:66
↓ 10 callersFunctioncreateInstance
( config: Config, system: System = new System(), )
src/setup/setup.ts:145
↓ 10 callersFunctionhasOwnSelection
(node: Node)
src/utils/focus/selection.ts:14
↓ 9 callersFunctionaddListeners
( element: Element | Element[], { eventHandlers = {}, }: { eventHandlers?: EventHandlers } = {
tests/_helpers/listeners.ts:42
↓ 9 callersFunctionisDisabled
(element: Element | null)
src/utils/misc/isDisabled.ts:4
↓ 8 callersFunctionassignProps
(obj: T, props: {[k in keyof T]?: T[k]})
src/event/createEvent.ts:101
↓ 8 callersFunctionfocusElement
(element: Element)
src/event/focus.ts:11
↓ 8 callersFunctiongetUISelection
( element: HTMLInputElement | HTMLTextAreaElement, )
src/document/UI.ts:132
↓ 8 callersFunctionsetUISelection
( element: HTMLInputElement | HTMLTextAreaElement, { focusOffset: focusOffsetParam, anchorOffset:
src/document/UI.ts:80
↓ 7 callersMethodassertFakeTimers
()
testenv/modules/fakeTimers.ts:117
↓ 7 callersFunctionclearEventCalls
()
tests/_helpers/listeners.ts:89
↓ 7 callersFunctionisContentEditable
( element: Element, )
src/utils/edit/isContentEditable.ts:2
↓ 7 callersFunctionisJsdomEnv
()
tests/_helpers/index.ts:9
↓ 6 callersFunctionassertPointerEvents
(instance: Instance, element: Element)
src/utils/pointer/cssPointerEvents.ts:81
↓ 6 callersMethodget
(k: string)
src/system/pointer/index.ts:26
↓ 6 callersFunctioninput
( instance: Instance, element: Element, data: string, inputType: string = 'insertText', )
src/event/input.ts:28
↓ 6 callersFunctionisEditable
( element: Element, )
src/utils/edit/isEditable.ts:7
↓ 6 callersFunctionsetSelection
({ focusNode, focusOffset, anchorNode = focusNode, anchorOffset = focusOffset, }: { anchorNode?: Nod
src/event/selection/setSelection.ts:7
↓ 6 callersFunctionwait
(config: Instance['config'])
src/utils/misc/wait.ts:3
↓ 6 callersMethodwrite
(data: ClipboardItem[])
src/utils/dataTransfer/Clipboard.ts:90
↓ 5 callersFunctioncreateDataTransfer
( window: Window & typeof globalThis, files: File[] = [], )
src/utils/dataTransfer/DataTransfer.ts:162
↓ 5 callersFunctioncreateFileList
( window: Window & typeof globalThis, files: File[], )
src/utils/dataTransfer/FileList.ts:3
↓ 5 callersFunctiongetActiveElement
( document: Document | ShadowRoot, )
src/utils/focus/getActiveElement.ts:4
↓ 5 callersMethodgetData
(format: string)
src/utils/dataTransfer/DataTransfer.ts:100
↓ 5 callersMethodgetEventInit
( /** * The `button` that caused the event. * * This should be `-1` if the event is not cau
src/system/pointer/pointer.ts:140
↓ 5 callersMethodgetTarget
(instance: Instance)
src/system/pointer/mouse.ts:211
↓ 5 callersMethodgetTarget
(instance: Instance)
src/system/pointer/pointer.ts:136
↓ 5 callersFunctiongetTreeDiff
(a: Element | null, b: Element | null)
src/utils/misc/getTreeDiff.ts:1
↓ 5 callersMethodnow
()
testenv/modules/fakeTimers.ts:108
↓ 5 callersFunctionpatchFocus
(HTMLElement: typeof globalThis['HTMLElement'])
src/document/patchFocus.ts:12
↓ 4 callersFunctiongetContentEditable
(node: Node)
src/utils/edit/isContentEditable.ts:15
↓ 4 callersFunctiongetTabDestination
(activeElement: Element, shift: boolean)
src/utils/focus/getTabDestination.ts:6
↓ 4 callersFunctionhasPointerEvents
( instance: Instance, element: Element, )
src/utils/pointer/cssPointerEvents.ts:7
↓ 4 callersFunctionsanitizeNumber
(n: number | undefined)
src/event/createEvent.ts:107
↓ 4 callersMethodsetData
(format: string, data: string)
src/utils/dataTransfer/DataTransfer.ts:114
↓ 4 callersFunctionwrapEvent
( cb: () => R, // eslint-disable-next-line @typescript-eslint/no-unused-vars _element: Element, )
src/event/wrapEvent.ts:3
↓ 4 callersMethodwriteText
(text: string)
src/utils/dataTransfer/Clipboard.ts:94
↓ 3 callersMethodadd
(code: string, keyDef: keyboardKey)
src/system/keyboard.ts:80
↓ 3 callersMethodclear
()
src/utils/dataTransfer/DataTransfer.ts:65
↓ 3 callersFunctioncreateClipboardItem
( window: Window & typeof globalThis, ...blobs: Array<Blob | string> )
src/utils/dataTransfer/Clipboard.ts:14
↓ 3 callersFunctioncreateEvent
( type: K, target: Element, init?: EventTypeInit<K>, )
src/event/createEvent.ts:41
↓ 3 callersFunctiondispatchDOMEvent
( target: Element, type: K, init?: EventTypeInit<K>, )
src/event/dispatchEvent.ts:66
↓ 3 callersFunctiongetActiveElementOrBody
(document: Document)
src/utils/focus/getActiveElement.ts:31
↓ 3 callersMethodgetAsString
(callback: (data: string) => unknown)
src/utils/dataTransfer/DataTransfer.ts:32
↓ 3 callersFunctiongetElementDisplayName
(element: Element)
tests/_helpers/listeners.ts:183
↓ 3 callersMethodgetEventInit
(type: EventType, button?: MouseButton)
src/system/pointer/mouse.ts:192
↓ 3 callersFunctiongetMouseButtonId
(button: MouseButton = 0)
src/system/pointer/buttons.ts:54
↓ 3 callersFunctiongetMouseEventButton
(button?: MouseButton)
src/system/pointer/buttons.ts:66
↓ 3 callersFunctiongetNextCursorPosition
( node: Node, offset: number, direction: -1 | 1, inputType?: string, )
src/utils/focus/cursor.ts:10
↓ 3 callersMethodgetPointerName
(keyDef: pointerKey)
src/system/pointer/index.ts:183
↓ 3 callersFunctiongetTargetTypeAndSelection
(node: Node)
src/event/selection/getTargetTypeAndSelection.ts:7
↓ 3 callersMethodgetType
(type: string)
src/utils/dataTransfer/Clipboard.ts:41
↓ 3 callersFunctiongetTypeMatcher
(type: string, exact: boolean)
src/utils/dataTransfer/DataTransfer.ts:86
↓ 3 callersMethodhas
(pointerName: string)
src/system/pointer/index.ts:71
↓ 3 callersFunctionisClipboardStub
( clipboard: Clipboard | ClipboardStub | undefined, )
src/utils/dataTransfer/Clipboard.ts:105
↓ 3 callersFunctionisElement
(node: Node)
src/utils/focus/cursor.ts:134
↓ 3 callersFunctionnormalizeFormat
(format: string)
src/utils/dataTransfer/DataTransfer.ts:77
↓ 3 callersFunctionprepareDocument
(document: Document)
src/document/prepareDocument.ts:18
↓ 3 callersFunctionprepareInterceptor
( element: ElementType, propName: PropName, interceptorImpl: ( this: ElementType, ...args: Param
src/document/interceptor.ts:25
↓ 3 callersFunctionreadBlobText
(blob: Blob, FileReader: {new (): FileReader})
src/utils/dataTransfer/Blob.ts:3
↓ 3 callersFunctionreadNextDescriptor
(text: string, context: Context)
src/utils/keyDef/readNextDescriptor.ts:19
↓ 3 callersMethodreadText
()
src/utils/dataTransfer/Clipboard.ts:75
↓ 3 callersFunctionresetWrappers
()
tests/_helpers/index.ts:19
↓ 3 callersFunctionselectAll
(target: Element)
src/event/selection/selectAll.ts:9
↓ 3 callersFunctionsetSelectionRange
( element: Element, anchorOffset: number, focusOffset: number, )
src/event/selection/setSelectionRange.ts:9
↓ 3 callersFunctionsetUISelectionClean
( element: HTMLInputElement | HTMLTextAreaElement, )
src/document/UI.ts:153
↓ 3 callersFunctionsetUIValueClean
( element: HTMLInputElement | HTMLTextAreaElement, )
src/document/UI.ts:55
↓ 3 callersMethoduseRealTimers
()
testenv/modules/fakeTimers.ts:78
↓ 3 callersMethodvalues
()
src/system/keyboard.ts:101
↓ 2 callersFunctionassertDescriptor
( descriptor: string | undefined, text: string, pos: number, context: Context, )
src/utils/keyDef/readNextDescriptor.ts:116
↓ 2 callersFunctionassertTabOrderBackward
(tabOrder: Element[])
tests/utils/focus/getTabDestination.ts:16
↓ 2 callersFunctionassertTabOrderForward
(tabOrder: Element[])
tests/utils/focus/getTabDestination.ts:4
↓ 2 callersFunctionattachClipboardStubToView
(window: Window & typeof globalThis)
src/utils/dataTransfer/Clipboard.ts:113
↓ 2 callersFunctionblurElement
(element: Element)
src/event/focus.ts:26
↓ 2 callersFunctioncheckPointerEvents
(instance: Instance, element: Element)
src/utils/pointer/cssPointerEvents.ts:48
↓ 2 callersFunctionclearInitialValue
( element: HTMLInputElement | HTMLTextAreaElement, )
src/document/UI.ts:61
↓ 2 callersFunctioncopySelection
(target: Element)
src/document/copySelection.ts:9
↓ 2 callersMethoddelete
(code: string)
src/system/keyboard.ts:98
↓ 2 callersFunctiondetachClipboardStubFromView
( window: Window & typeof globalThis, )
src/utils/dataTransfer/Clipboard.ts:156
↓ 2 callersMethoddown
( instance: Instance, keyDef: pointerKey, /** Whether `preventDefault()` has been called on the `p
src/system/pointer/mouse.ts:114
↓ 2 callersFunctiongetActiveTarget
(document: Document)
src/document/patchFocus.ts:87
↓ 2 callersMethodgetAsFile
()
src/utils/dataTransfer/DataTransfer.ts:28
↓ 2 callersFunctiongetBlobFromDataTransferItem
( window: Window & typeof globalThis, item: DataTransferItem, )
src/utils/dataTransfer/DataTransfer.ts:177
↓ 2 callersMethodgetButtons
()
src/system/pointer/buttons.ts:6
↓ 2 callersFunctiongetClickEventsSnapshot
()
tests/_helpers/listeners.ts:98
↓ 2 callersFunctiongetDocumentFromNode
(el: Node)
src/utils/misc/getDocumentFromNode.ts:1
↓ 2 callersFunctiongetErrorMessage
( expected: string, found: string | undefined, text: string, context: Context, )
src/utils/keyDef/readNextDescriptor.ts:137
↓ 2 callersFunctiongetEventClass
(type: EventType)
src/event/eventMap.ts:138
↓ 2 callersFunctiongetInputRange
( focusNode: Node, )
src/event/selection/getInputRange.ts:7
↓ 2 callersFunctionisAllSelected
(target: Element)
src/event/selection/selectAll.ts:26
next →1–100 of 369, ranked by callers