npm / next-router-mock
next-router-mock
What changed in next-router-mock 1, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
2 new APIs and options4 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initnext-router-mock 16 changes
New APIs and options 2
Adds an easy way to reset the mock router before tests.
Adds support for mocking next/navigation.
Fixes and other changes 4
Options passed to push are now forwarded to singletonRouter.
Options passed to replace are now forwarded to singletonRouter.
Fixes routeParams extraction when using object navigation.
Added missing parameter types to the replace method signature.