question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Padding between it and describe blocks.

See original GitHub issue

I 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:closed
  • Created 6 years ago
  • Reactions:6
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

11reactions
dangreenisraelcommented, May 4, 2019

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

2reactions
SimenBcommented, Nov 29, 2017

Closing as we won’t be adding it.

If you create a plugin for it, we could link to it 🙂

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found