Skip to content

Commit 92a8826

Browse files
authored
test(no-test-prefixes): add case for xdescribe.each (#780)
1 parent c916902 commit 92a8826

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/rules/__tests__/no-test-prefixes.test.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,18 @@ ruleTester.run('no-test-prefixes', rule, {
4646
},
4747
],
4848
},
49+
{
50+
code: 'xdescribe.each([])("foo", function () {})',
51+
output: 'describe.skip.each([])("foo", function () {})',
52+
errors: [
53+
{
54+
messageId: 'usePreferredName',
55+
data: { preferredNodeName: 'describe.skip.each' },
56+
column: 1,
57+
line: 1,
58+
},
59+
],
60+
},
4961
{
5062
code: 'fit("foo", function () {})',
5163
output: 'it.only("foo", function () {})',

0 commit comments

Comments
 (0)