Skip to content

chore: enable ESLint on test folder #2076

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 12 commits into from
May 3, 2023
Merged

chore: enable ESLint on test folder #2076

merged 12 commits into from
May 3, 2023

Conversation

LekoArts
Copy link

@LekoArts LekoArts commented Apr 28, 2023

Summary

Enables ESLint for our tests and adds eslint-plugin-jest

Relevant links (GitHub issues, Notion docs, etc.) or a picture of cute animal

Fixes https://github.com/netlify/pod-ecosystem-frameworks/issues/466

Standard checks:

  • Check the Deploy Preview's Demo site for your PR's functionality
  • Add docs when necessary

🧪 Once merged, make sure to update the version if needed and that it was published correctly.

@netlify
Copy link

netlify bot commented Apr 28, 2023

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

Name Link
🔨 Latest commit 36473ae
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-static-root-demo/deploys/6450b87d43ab5e00082ea05e
😎 Deploy Preview https://deploy-preview-2076--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 Apr 28, 2023

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

Name Link
🔨 Latest commit 36473ae
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-nx-monorepo-demo/deploys/6450b87d5f560100076cbb70
😎 Deploy Preview https://deploy-preview-2076--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 Apr 28, 2023

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

Name Link
🔨 Latest commit 36473ae
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-export-demo/deploys/6450b87dfb147f00089d759f
😎 Deploy Preview https://deploy-preview-2076--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 Apr 28, 2023

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

Name Link
🔨 Latest commit 36473ae
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-demo/deploys/6450b87d44684b0008c6b958
😎 Deploy Preview https://deploy-preview-2076--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 Apr 28, 2023

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

Name Link
🔨 Latest commit 36473ae
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-next-auth-demo/deploys/6450b87d7cdc4900081956dc
😎 Deploy Preview https://deploy-preview-2076--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.

@netlify
Copy link

netlify bot commented Apr 28, 2023

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

Name Link
🔨 Latest commit 36473ae
🔍 Latest deploy log https://app.netlify.com/sites/nextjs-plugin-custom-routes-demo/deploys/6450b87d227d0c000882ff3c
😎 Deploy Preview https://deploy-preview-2076--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 Apr 28, 2023

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

Name Link
🔨 Latest commit 36473ae
🔍 Latest deploy log https://app.netlify.com/sites/next-plugin-edge-middleware/deploys/6450b87dfa9fec0008cce6cb
😎 Deploy Preview https://deploy-preview-2076--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 Apr 28, 2023

Deploy Preview for next-plugin-canary ready!

Name Link
🔨 Latest commit 36473ae
🔍 Latest deploy log https://app.netlify.com/sites/next-plugin-canary/deploys/6450b87ddb3ce90008171fc3
😎 Deploy Preview https://deploy-preview-2076--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 Apr 28, 2023

Deploy Preview for next-i18next-demo ready!

Name Link
🔨 Latest commit 36473ae
🔍 Latest deploy log https://app.netlify.com/sites/next-i18next-demo/deploys/6450b87d8b2a9c00085f6447
😎 Deploy Preview https://deploy-preview-2076--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.

@github-actions github-actions bot added the type: chore work needed to keep the product and development running smoothly label Apr 28, 2023
@LekoArts LekoArts self-assigned this Apr 28, 2023
@LekoArts LekoArts marked this pull request as ready for review May 2, 2023 07:15
@LekoArts LekoArts requested a review from a team May 2, 2023 07:15
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.

Looks good @LekoArts! Left some comments, but nothing blocking. :shipit:

jestSetup.js
test/e2e
test/fixtures/broken_next_config/next.config.js

Choose a reason for hiding this comment

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

[dust] since we're updating this add a new line that's missing:

Comment on lines +5 to +10
const netlifyConfig = {
build: { command: 'npm run build' },
functions: {},
redirects: [],
headers: [],
} as NetlifyPluginOptions['netlifyConfig']

Choose a reason for hiding this comment

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

Maybe for another PR, but prefer not to cast. Add anything missing if required.

Suggested change
const netlifyConfig = {
build: { command: 'npm run build' },
functions: {},
redirects: [],
headers: [],
} as NetlifyPluginOptions['netlifyConfig']
const netlifyConfig: NetlifyPluginOptions['netlifyConfig'] = {
build: { command: 'npm run build' },
functions: {},
redirects: [],
headers: [],
}

Copy link
Author

Choose a reason for hiding this comment

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

It seems that for the sake of the test, those key/values are enough, a lot of stuff is missing and it just unblocked things

@LekoArts LekoArts merged commit 641bd86 into main May 3, 2023
@LekoArts LekoArts deleted the chore/test-eslint branch May 3, 2023 06:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

2 participants