From 92a8826d5c38a99d03ceec2082d2344fed40248a Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Sun, 7 Mar 2021 08:35:49 +1300 Subject: [PATCH] test(no-test-prefixes): add case for `xdescribe.each` (#780) --- src/rules/__tests__/no-test-prefixes.test.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/rules/__tests__/no-test-prefixes.test.ts b/src/rules/__tests__/no-test-prefixes.test.ts index 731fe74fa..513576115 100644 --- a/src/rules/__tests__/no-test-prefixes.test.ts +++ b/src/rules/__tests__/no-test-prefixes.test.ts @@ -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 () {})',