Skip to content
Discussion options

You must be logged in to vote

Ah nevermind, they just have to go into the same mock call 🫡

jest.mock('next-intl/client', () => ({
  useRouter() {
    return {
      push: () => jest.fn(),
      replace: () => jest.fn(),
    };
  },
  usePathname() {
    return '';
  },
}));

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ghost
Comment options

@tnyo43
Comment options

Answer selected by chrislicodes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants