Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/alibaba/hooks
/ index.spec.ts
File
index.spec.ts
packages/hooks/src/useLockFn/__tests__/index.spec.ts:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
{ act, renderHook } from
'@testing-library/react'
;
2
import
{ useCallback, useRef, useState } from
'react'
;
3
import
{ describe, expect, test } from
'vitest'
;
4
import
{ sleep } from
'../../utils/testingHelpers'
;
Callers
nothing calls this directly
Calls
2
sleep
Function · 0.90
setUp
Function · 0.70
Tested by
no test coverage detected