Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/testing-library/user-event
/ patchFocus.ts
File
patchFocus.ts
tests/document/patchFocus.ts:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
{patchFocus, restoreFocus} from
'#src/document/patchFocus'
2
import
{isJsdomEnv, render} from
'#testHelpers'
3
4
beforeAll(() => {
Callers
nothing calls this directly
Calls
5
patchFocus
Function · 0.90
restoreFocus
Function · 0.90
render
Function · 0.85
getEventSnapshot
Function · 0.85
isJsdomEnv
Function · 0.85
Tested by
no test coverage detected