Skip to content

Commit

Permalink
test(no-test-prefixes): add case for xdescribe.each (#780)
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Mar 6, 2021
1 parent c916902 commit 92a8826
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/rules/__tests__/no-test-prefixes.test.ts
Expand Up @@ -46,6 +46,18 @@ ruleTester.run('no-test-prefixes', rule, {
},
],
},
{
code: 'xdescribe.each([])("foo", function () {})',
output: 'describe.skip.each([])("foo", function () {})',
errors: [
{
messageId: 'usePreferredName',
data: { preferredNodeName: 'describe.skip.each' },
column: 1,
line: 1,
},
],
},
{
code: 'fit("foo", function () {})',
output: 'it.only("foo", function () {})',
Expand Down

0 comments on commit 92a8826

Please sign in to comment.