Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jest.mock('next/router') not working in modules with Next 12 #33

Closed
spence-novata opened this issue Jan 4, 2022 · 1 comment
Closed
Labels
bug Something isn't working invalid This doesn't seem right wontfix This will not be worked on

Comments

@spence-novata
Copy link

It seems like this is an issue with Next 12 as it affects other scripts in dist/client but apart from anything I feel like an issue in next-router-mock would be helpful for anyone running into the same problem.

vercel/next.js#32964

@scottrippey scottrippey added the wontfix This will not be worked on label Jan 4, 2022
@scottrippey
Copy link
Owner

This seems like an issue with Jest or maybe Next 12, but since it definitely can't be fixed here, I'm going to close this issue.

Hopefully, if others have this issue, the link above will help them find a solution.

@scottrippey scottrippey added bug Something isn't working invalid This doesn't seem right labels Jan 4, 2022
@scottrippey scottrippey changed the title Can't mock in other modules with Next 12 jest.mock('next/router') not working in modules with Next 12 Jan 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working invalid This doesn't seem right wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants