MCPcopy Create free account
hub / github.com/dailydotdev/apps / advanceFrame

Function advanceFrame

packages/shared/src/hooks/usePostModalNavigation.spec.ts:32–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30let pageHeight = 20000;
31let notifyResize: (() => void) | undefined;
32const advanceFrame = () => act(() => jest.advanceTimersByTime(16));
33
34const setScrollY = (value: number): void => {
35 Object.defineProperty(window, 'scrollY', { configurable: true, value });

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected