MCPcopy Create free account
hub / github.com/bvaughn/react-virtualized / wait

Function wait

lib/utils/scrollElement/useScrollElementLink.test.tsx:65–69  ·  view source on GitHub ↗
(ms: number)

Source from the content-addressed store, hash-verified

63}
64
65function wait(ms: number) {
66 return act(async () => {
67 await new Promise((resolve) => setTimeout(resolve, ms));
68 });
69}
70
71describe("useScrollElementLink", () => {
72 let unmockResizeObserver: () => void;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected