eslint-plugin-jest-formatting
Version:
ESLint rules for formatting jest tests
32 lines (21 loc) • 420 B
Markdown
# padding-before-test-blocks
## Rule Details
This rule enforces a line of padding before test/it blocks
Examples of **incorrect** code for this rule:
```js
test('foo', () => {});
test('bar', () => {});
```
```js
it('foo', () => {});
it('bar', () => {});
```
Examples of **correct** code for this rule:
```js
test('foo', () => {});
test('bar', () => {});
```
```js
it('foo', () => {});
it('bar', () => {});
```