MCPcopy Create free account
hub / github.com/react-component/tooltip / waitFakeTimers

Function waitFakeTimers

tests/index.test.tsx:22–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20 });
21
22 async function waitFakeTimers() {
23 for (let i = 0; i < 100; i += 1) {
24 await act(async () => {
25 jest.advanceTimersByTime(100);
26 await Promise.resolve();
27 });
28 }
29 }
30
31 describe('shows and hides itself on click', () => {
32 it('using an element overlay', () => {

Callers 1

destroyVerifyContentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…