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

Method getTarget

src/system/pointer/mouse.ts:211–213  ·  view source on GitHub ↗
(instance: Instance)

Source from the content-addressed store, hash-verified

209 }
210
211 private getTarget(instance: Instance) {
212 return this.position.target ?? instance.config.document.body
213 }
214
215 private startSelecting(instance: Instance, clickCount: number) {
216 // TODO: support extending range (shift)

Callers 5

moveMethod · 0.95
downMethod · 0.95
upMethod · 0.95
startSelectingMethod · 0.95
modifySelectingMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected