MCPcopy 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

4import useList from '..';
5
6const awaitTimers = async () => {
7 for (let i = 0; i < 10; i++) {
8 await Promise.resolve();
9 }
10};
11
12describe('Test useList hook', () => {
13 afterEach(() => jest.useRealTimers());

Callers 1

useList.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected