Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/testing-library/user-event
/ wrapAsync
Function
wrapAsync
src/setup/wrapAsync.ts:6–10 ·
view source on GitHub ↗
( implementation: P, )
Source
from the content-addressed store, hash-verified
4
* Wrap an internal Promise
5
*/
6
export
function
wrapAsync<R, P extends (() => Promise<R>) | (() => R)>(
7
implementation: P,
8
): Promise<R> {
9
return
getConfig().asyncWrapper(implementation)
10
}
Callers
1
method
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected