Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DTStack/dt-react-component
/ awaitTimers
Function
awaitTimers
src/useList/__tests__/useList.test.ts:6–10 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
4
import
useList from
'..'
;
5
6
const
awaitTimers =
async
() => {
7
for
(
let
i = 0; i < 10; i++) {
8
await
Promise.resolve();
9
}
10
};
11
12
describe(
'Test useList hook'
, () => {
13
afterEach(() => jest.useRealTimers());
Callers
1
useList.test.ts
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected