next-router-mock@1.0.5
// Mock implementation of the Next.js Router
$ npm install next-router-mock
downloads/wk
856,975
license
MIT
version
1.0.5
published
Dec 31, 2025
What is next-router-mock?
next-router-mock is a testing library that provides a mock implementation of the Next.js Router, allowing you to test components that depend on routing without running a full Next.js application. Developers use it to write unit and integration tests for components that interact with `useRouter()` and other router functionality in isolated test environments.
Links
Keywords
Maintainers
scott-rippey