When trying to write simple tests for out Next.js app that uses useRouter() hook, vitest starts throwing errors.
Looking for ways to mock next/router for unit testing with vitest.
When trying to write simple tests for out Next.js app that uses useRouter() hook, vitest starts throwing errors.
Looking for ways to mock next/router for unit testing with vitest.
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)