Menu Testing Ssr

Server rendering and testing for react-horizontal-scrolling-menu: the library is client-only ('use client' required in React Server Components, else "createContext is not a function"), SSR first paint is controlled by the useIsVisible defaultValue argument (canonical ('first', true) / ('last', false)), transpilePackages for older Next.js, Jest moduleNameMapper to dist/index.cjs for "Cannot use import statement outside a module" plus an IntersectionObserver class mock for jsdom (ReferenceError on mount without it), and async poll-based assertions (Playwright preferred). Load when integrating with Next.js / TanStack Start, fixing hydration flicker, or writing tests for the menu.

asmyshlyaev177 70c134c 13.3 KB Updated

File contents

asmyshlyaev177/react-horizontal-scrolling-menu/tree/main/skills/menu-testing-ssr commit 70c134ccb4

Frequently asked questions

npx skillmds@latest add asmyshlyaev177/menu-testing-ssr