MCPcopy Create free account
hub / github.com/callstack/react-native-paper / runTimers

Function runTimers

src/components/__tests__/Tooltip.test.tsx:28–36  ·  view source on GitHub ↗
(ms?: number)

Source from the content-addressed store, hash-verified

26 getByText('dummy component').parent as ReactTestInstance;
27
28 const runTimers = (ms?: number) => {
29 act(() => {
30 if (ms === undefined) {
31 jest.runOnlyPendingTimers();
32 } else {
33 jest.advanceTimersByTime(ms);
34 }
35 });
36 };
37
38 const setup = (
39 propOverrides?: Partial<React.ComponentProps<typeof Tooltip>>,

Callers 1

Tooltip.test.tsxFile · 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…