Skip to content

Commit ce76579

Browse files
authored
docs(no-focused-tests): remove references to ftest method (#816)
There's no such prefixed method for `test`; only `fit` & `fdescribe`
1 parent 72fe0c6 commit ce76579

File tree

2 files changed

+1
-21
lines changed

2 files changed

+1
-21
lines changed

docs/rules/no-focused-tests.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ whenever you are using the exclusivity feature.
1212
## Rule Details
1313

1414
This rule looks for every `describe.only`, `it.only`, `test.only`, `fdescribe`,
15-
`fit` and `ftest` occurrences within the source code. Of course there are some
15+
and `fit` occurrences within the source code. Of course there are some
1616
edge-cases which can’t be detected by this rule e.g.:
1717

1818
```js
@@ -31,13 +31,9 @@ test.only('foo', () => {});
3131
test['only']('bar', () => {});
3232
fdescribe('foo', () => {});
3333
fit('foo', () => {});
34-
ftest('bar', () => {});
3534
fit.each`
3635
table
3736
`();
38-
ftest.each`
39-
table
40-
`();
4137
```
4238

4339
These patterns would not be considered warnings:

src/rules/__tests__/no-focused-tests.test.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -317,21 +317,5 @@ ruleTester.run('no-focused-tests', rule, {
317317
},
318318
],
319319
},
320-
{
321-
code: 'ftest.each`table`()',
322-
errors: [
323-
{
324-
messageId: 'focusedTest',
325-
column: 1,
326-
line: 1,
327-
suggestions: [
328-
{
329-
messageId: 'suggestRemoveFocus',
330-
output: 'test.each`table`()',
331-
},
332-
],
333-
},
334-
],
335-
},
336320
],
337321
});

0 commit comments

Comments
 (0)