[new-rule] Enforce top level describe
See original GitHub issueHello everyone,
Jest, and most testing library, let you write and organise your tests as you want, which is good but it can become a mess with large testing codebase.
(Somewhat similar to #362 and no-standalone-expect
)
It would be super cool to have a rule to enforce a top-level describe and make sure no test
, it
, beforeAll
etc… can live outside this describe.
Maybe it can be something like:
require-top-level-describe
or- merged with
no-standalone-expect
=>no-standalone: ['error', ['test', 'hook', 'expect']]
What do you think?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Enforce Policy Rule Description, Tag, and Audit Comment
Enforce audit comments for policy rules to capture the reason an administrator creates or modifies a rule. Requiring audit comments on policy rules...
Read more >Guide to the Rulemaking Process - Federal Register
Go to Top. What is the purpose of the proposed rule? The proposed rule, or Notice of Proposed Rulemaking (NPRM), is the official...
Read more >Code-style naming rules - .NET - Microsoft Learn
Sets the severity with which to enforce the naming rule. Set the associated value to one of the available severity levels. 1. Notes:...
Read more >Working with Rules - ESLint - Pluggable JavaScript Linter
description (string) provides the short description of the rule in the rules ... a high-level overview of ESLint running time with all core...
Read more >SEC Proposes Rules to Enhance and Standardize Climate ...
I believe the SEC has a role to play when there's this level of demand for consistent and comparable information that may affect...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Amazing, this is perfect. A big thanks to both of you 🙏
Hi! That’s something I was looking for as well and I would like to give it a try by opening a PR. Does it work for you? 🙂