Skip to content

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

Merged
merged 2 commits into from
Dec 22, 2022
Merged

test: re-enable unit tests #1852

merged 2 commits into from
Dec 22, 2022

Conversation

ascorbic
Copy link
Contributor

@ascorbic ascorbic commented Dec 21, 2022

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.

@netlify
Copy link

netlify bot commented Dec 21, 2022

Deploy Preview for netlify-plugin-nextjs-export-demo ready!

Name Link
🔨 Latest commit 6520bc4
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-export-demo/deploys/63a33ffb6cd88d000823eedf
😎 Deploy Preview https://deploy-preview-1852--netlify-plugin-nextjs-export-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Dec 21, 2022

Deploy Preview for netlify-plugin-nextjs-nx-monorepo-demo ready!

Name Link
🔨 Latest commit 6520bc4
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-nx-monorepo-demo/deploys/63a33ffbad4b6b00095122d8
😎 Deploy Preview https://deploy-preview-1852--netlify-plugin-nextjs-nx-monorepo-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Dec 21, 2022

Deploy Preview for netlify-plugin-nextjs-static-root-demo ready!

Name Link
🔨 Latest commit 6520bc4
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-static-root-demo/deploys/63a33ffb5b54e200085fa47a
😎 Deploy Preview https://deploy-preview-1852--netlify-plugin-nextjs-static-root-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Dec 21, 2022

Deploy Preview for netlify-plugin-nextjs-demo ready!

Name Link
🔨 Latest commit 6520bc4
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-demo/deploys/63a33ffbc3c3d00008159c64
😎 Deploy Preview https://deploy-preview-1852--netlify-plugin-nextjs-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Dec 21, 2022

Deploy Preview for next-plugin-edge-middleware ready!

Name Link
🔨 Latest commit 6520bc4
🔍 Latest deploy log https://app.netlify.com/sites/next-plugin-edge-middleware/deploys/63a33ffb05846f000853bcab
😎 Deploy Preview https://deploy-preview-1852--next-plugin-edge-middleware.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Dec 21, 2022

Deploy Preview for next-plugin-canary ready!

Name Link
🔨 Latest commit 6520bc4
🔍 Latest deploy log https://app.netlify.com/sites/next-plugin-canary/deploys/63a33ffb6ec84500093623c1
😎 Deploy Preview https://deploy-preview-1852--next-plugin-canary.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Dec 21, 2022

Deploy Preview for next-i18next-demo ready!

Name Link
🔨 Latest commit 6520bc4
🔍 Latest deploy log https://app.netlify.com/sites/next-i18next-demo/deploys/63a33ffb002ea7000913f6b7
😎 Deploy Preview https://deploy-preview-1852--next-i18next-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Dec 21, 2022

Deploy Preview for nextjs-plugin-custom-routes-demo ready!

Name Link
🔨 Latest commit 6520bc4
🔍 Latest deploy log https://app.netlify.com/sites/nextjs-plugin-custom-routes-demo/deploys/63a33ffbe5f3270008b00c16
😎 Deploy Preview https://deploy-preview-1852--nextjs-plugin-custom-routes-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Dec 21, 2022

Deploy Preview for netlify-plugin-nextjs-next-auth-demo ready!

Name Link
🔨 Latest commit 6520bc4
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-next-auth-demo/deploys/63a33ffb29456f0007054b3b
😎 Deploy Preview https://deploy-preview-1852--netlify-plugin-nextjs-next-auth-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@github-actions github-actions bot added the type: chore work needed to keep the product and development running smoothly label Dec 21, 2022
@@ -3,10 +3,11 @@
exports[`function helpers config dependency tracing extracts a list of all dependencies 1`] = `
Array [
Copy link
Contributor Author

@ascorbic ascorbic Dec 21, 2022

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",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was introduced in 2aa02db. Presumably this is as expected, @orinokai?

@@ -335,22 +344,6 @@ Array [
"pages/en/getStaticProps/static.json",
"_next/data/build-id/en/getStaticProps/static.json",
],
Array [
Copy link
Contributor Author

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)

Copy link
Contributor Author

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

@ascorbic ascorbic marked this pull request as ready for review December 21, 2022 17:07
@ascorbic ascorbic requested a review from a team December 21, 2022 17:07
Copy link

@nickytonline nickytonline left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@kodiakhq kodiakhq bot merged commit 28ea00e into main Dec 22, 2022
@kodiakhq kodiakhq bot deleted the mk/enable-unit-tests branch December 22, 2022 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge type: chore work needed to keep the product and development running smoothly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants