Skip to content

Commit

Permalink
fix: support failing property on test functions (#1123)
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed May 28, 2022
1 parent 8b3f0f2 commit 6d75e8d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/rules/utils/parseJestFnCall.ts
Expand Up @@ -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',
Expand Down

0 comments on commit 6d75e8d

Please sign in to comment.