Skip to content

Lint: enable jest/max-nested-describe rule - #1501

Closed
marcalexiei wants to merge 3 commits into
changesets:mainfrom
marcalexiei:feat/eslint-plugin-jest-max-nested-describe
Closed

marcalexiei wants to merge 3 commits into
changesets:mainfrom
marcalexiei:feat/eslint-plugin-jest-max-nested-describe

Conversation

@marcalexiei

@marcalexiei marcalexiei commented Oct 19, 2024 •

Copy link
Copy Markdown
Contributor

This PR is a based on top of #1496 changes,
it aims to enable jest/max-nested-describe rule as per review of #1466 (comment).

Note

I'm creating a separate PR to simplify review process since there a lot of code changes (mostly indentation 😅).

Caution

This is marked as draft because should be reviewed after #1496 is merged.

Tip

If there are too many changes I can disable the rule in biggest file (like packages/cli/src/commands/version/version.test.ts) and restore their original content.

@changeset-bot

changeset-bot Bot commented Oct 19, 2024

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 5d2a56b

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@codecov

codecov Bot commented Oct 19, 2024 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.04%. Comparing base (8ef697d) to head (5d2a56b).
⚠️ Report is 60 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1501   +/-   ##
=======================================
  Coverage   81.04%   81.04%           
=======================================
  Files          54       54           
  Lines        2221     2221           
  Branches      657      661    +4     
=======================================
  Hits         1800     1800           
  Misses        417      417           
  Partials        4        4           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This file contains a large amount of tests so I created multiple describe blocks in the file root.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I addition to edit tests title I used #region and #endregion vscode markers to keep related test together

@marcalexiei
marcalexiei deleted the feat/eslint-plugin-jest-max-nested-describe branch May 4, 2026 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant