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

Function setScrollY

packages/shared/src/hooks/usePostModalNavigation.spec.ts:34–36  ·  view source on GitHub ↗
(value: number)

Source from the content-addressed store, hash-verified

32const advanceFrame = () => act(() => jest.advanceTimersByTime(16));
33
34const setScrollY = (value: number): void => {
35 Object.defineProperty(window, 'scrollY', { configurable: true, value });
36};
37
38const getHistoryEntry = () => ({
39 key: window.history.state.key as string,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected