Created
May 31, 2022 08:57
-
-
Save arvinsim/00b2547af44cefe0b07f7e1ab4e7f7be to your computer and use it in GitHub Desktop.
Mocking <Link> components in NextJS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jest.mock( | |
'next/link', | |
() => | |
({ children }: { children: ReactChildren }): ReactChildren => | |
children, | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment