-
Notifications
You must be signed in to change notification settings - Fork 86
test: re-enable unit tests #1852
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
Conversation
✅ Deploy Preview for netlify-plugin-nextjs-export-demo ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for netlify-plugin-nextjs-nx-monorepo-demo ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for netlify-plugin-nextjs-static-root-demo ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for netlify-plugin-nextjs-demo ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for next-plugin-edge-middleware ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for next-plugin-canary ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for next-i18next-demo ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for nextjs-plugin-custom-routes-demo ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for netlify-plugin-nextjs-next-auth-demo ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
@@ -3,10 +3,11 @@ | |||
exports[`function helpers config dependency tracing extracts a list of all dependencies 1`] = ` | |||
Array [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to git bisect
, these started failing in 8717730 which indicates it's just down to an update in the version of Next.js
"status": 200, | ||
"to": "/.netlify/builders/___netlify-odb-handler", | ||
"status": 404, | ||
"to": "/server/pages/en/404.html", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -335,22 +344,6 @@ Array [ | |||
"pages/en/getStaticProps/static.json", | |||
"_next/data/build-id/en/getStaticProps/static.json", | |||
], | |||
Array [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Introduced in a5b8047 (app dir)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, this is because we no longer move ISR pages, because they're needed for the first request. https://github.com/netlify/next-runtime/blob/main/packages/runtime/src/helpers/files.ts#L158
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
Summary
When we added the Next e2e tests, a mistake in the jest config meant that the
index.js
test no longer matched, and so the tests weren't being run. This PR re-enables them. However the snapshots have changed since then, which wasn't caught because the tests weren't being run.I have run
git bisect
to find the commits that broke each of the tests, and have commented with details. They all seem to be fine.