next.js
next.js copied to clipboard
Set `__NEXT_NEW_LINK_BEHAVIOR` in Jest tests when `newNextLinkBehavior` is true
Fixes #40463
Could use some help figuring out where to add a test! I looked around and found jest-next-swc.test.ts
, but I don't think I can use that to test this fix. Anyways, from my local testing this PR seems to fix the issue.
This is some awesome news @TomerAberbach :) thank you so much for looking into this, much appreciated!
This is some awesome news @TomerAberbach :) thank you so much for looking into this, much appreciated!
No problem! I probably should have mentioned, in the meantime you should be able to work around the issue by manually setting the __NEXT_NEW_LINK_BEHAVIOR
environment variable to true
for your Jest tests.