Skip to content

Commit

Permalink
feat: support failing.each (#1499)
Browse files Browse the repository at this point in the history
  • Loading branch information
mnoorenberghe authored Feb 13, 2024
1 parent b100c13 commit 9e9cf83
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/rules/utils/parseJestFnCall.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,41 +129,58 @@ const ValidJestFnCallChains = [
'xdescribe.each',
'it',
'it.concurrent',
'it.concurrent.failing',
'it.concurrent.each',
'it.concurrent.failing.each',
'it.concurrent.failing.only.each',
'it.concurrent.failing.skip.each',
'it.concurrent.only.each',
'it.concurrent.skip.each',
'it.each',
'it.failing',
'it.failing.each',
'it.only',
'it.only.each',
'it.only.failing',
'it.only.failing.each',
'it.skip',
'it.skip.each',
'it.skip.failing',
'it.skip.failing.each',
'it.todo',
'fit',
'fit.each',
'fit.failing',
'fit.failing.each',
'xit',
'xit.each',
'xit.failing',
'xit.failing.each',
'test',
'test.concurrent',
'test.concurrent.failing',
'test.concurrent.each',
'test.concurrent.failing.each',
'test.concurrent.failing.only.each',
'test.concurrent.failing.skip.each',
'test.concurrent.only.each',
'test.concurrent.skip.each',
'test.each',
'test.failing',
'test.failing.each',
'test.only',
'test.only.each',
'test.only.failing',
'test.only.failing.each',
'test.skip',
'test.skip.each',
'test.skip.failing',
'test.skip.failing.each',
'test.todo',
'xtest',
'xtest.each',
'xtest.failing',
'xtest.failing.each',
];

declare module '@typescript-eslint/utils/dist/ts-eslint' {
Expand Down

0 comments on commit 9e9cf83

Please sign in to comment.