From 8cc74802b728526bbf2ab5b08864e79596acbe01 Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Sat, 28 May 2022 15:42:41 +1200 Subject: [PATCH] fix: support `failing` property on test functions --- src/rules/utils/parseJestFnCall.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/rules/utils/parseJestFnCall.ts b/src/rules/utils/parseJestFnCall.ts index ce41fda1d..8bed175c8 100644 --- a/src/rules/utils/parseJestFnCall.ts +++ b/src/rules/utils/parseJestFnCall.ts @@ -106,26 +106,34 @@ const ValidJestFnCallChains = [ 'it.failing', 'it.only', 'it.only.each', + 'it.only.failing', 'it.skip', 'it.skip.each', + 'it.skip.failing', 'it.todo', 'fit', 'fit.each', + 'fit.failing', 'xit', 'xit.each', + 'xit.failing', 'test', 'test.concurrent', 'test.concurrent.each', 'test.concurrent.only.each', 'test.concurrent.skip.each', 'test.each', + 'test.failing', 'test.only', 'test.only.each', + 'test.only.failing', 'test.skip', 'test.skip.each', + 'test.skip.failing', 'test.todo', 'xtest', 'xtest.each', + 'xtest.failing', // todo: check if actually valid (not in docs) 'test.concurrent.skip',