Skip to content

Commit 8cc7480

Browse files
committed
fix: support failing property on test functions
1 parent 8b3f0f2 commit 8cc7480

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/rules/utils/parseJestFnCall.ts

+8
Original file line numberDiff line numberDiff line change
@@ -106,26 +106,34 @@ const ValidJestFnCallChains = [
106106
'it.failing',
107107
'it.only',
108108
'it.only.each',
109+
'it.only.failing',
109110
'it.skip',
110111
'it.skip.each',
112+
'it.skip.failing',
111113
'it.todo',
112114
'fit',
113115
'fit.each',
116+
'fit.failing',
114117
'xit',
115118
'xit.each',
119+
'xit.failing',
116120
'test',
117121
'test.concurrent',
118122
'test.concurrent.each',
119123
'test.concurrent.only.each',
120124
'test.concurrent.skip.each',
121125
'test.each',
126+
'test.failing',
122127
'test.only',
123128
'test.only.each',
129+
'test.only.failing',
124130
'test.skip',
125131
'test.skip.each',
132+
'test.skip.failing',
126133
'test.todo',
127134
'xtest',
128135
'xtest.each',
136+
'xtest.failing',
129137

130138
// todo: check if actually valid (not in docs)
131139
'test.concurrent.skip',

0 commit comments

Comments
 (0)