Padding between it and describe blocks.
See original GitHub issueI have been looking for a rule to enforce padding around all it
and describe
blocks. Is this the correct place for that? Maybe jest/padding-it-blocks
and jest/padding-describe-blocks
rules?
it('My awesome test.', () => {
expect(true).toBe(true)
})
// Enforcing this line of padding between the it blocks below this comment...
it('My other awesome test.', () => {
expect(false).toBe(false)
})
Issue Analytics
- State:
- Created 6 years ago
- Reactions:6
- Comments:5 (5 by maintainers)
Top Results From Across the Web
padding-block - CSS: Cascading Style Sheets - MDN Web Docs
The padding-block CSS shorthand property defines the logical block start and end padding of an element, which maps to physical padding ...
Read more >How do I add or reduce spacing between blocks and elements?
The spacing between your blocks and elements is broken down into two parts: Margin: Creates space between Elements/Blocks. Padding: Creates ...
Read more >padding-block | CSS-Tricks
padding -block is a logical property, which means it adapts the writing-mode of a page. So, when we're in a default horizontal top-to-bottom ......
Read more >How to add space between elements so they fill their ...
... span, p:after { display:inline-block; } span { border-radius: 15px; background:#7A9FC1; line-height:60px; width:60px; margin-top:1em; ...
Read more >Difference between Cellpadding and Cellspacing
Read; Discuss; Courses; Practice; Video ... Cellpadding specifies the space between the border of a table cell and its contents (i.e) it ...
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
Hey @SimenB. We we looking for this functionality, and following your advice I created a plugin for it. Any chance you would be willing to link to it and/or give any feedback on it?
Also, @hally9k is this what you were looking for?
https://github.com/dangreenisrael/eslint-plugin-jest-formatting https://www.npmjs.com/package/eslint-plugin-jest-formatting
Closing as we won’t be adding it.
If you create a plugin for it, we could link to it 🙂