Skip to content

Commit

Permalink
fix: allow for verifications from testdouble
Browse files Browse the repository at this point in the history
  • Loading branch information
mscharley committed Oct 12, 2024
1 parent 5ba0e97 commit 1855b9f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/purple-pens-compete.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@mscharley/eslint-config': patch
---

Allow for verifications from testdouble
5 changes: 3 additions & 2 deletions presets/eslint/rules/testing.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,18 @@ export default [
rules: {
'@typescript-eslint/consistent-type-assertions': 'off',
'@typescript-eslint/no-magic-numbers': 'off',
'jest/prefer-todo': 'error',
'jest/expect-expect': ['warn', { assertFunctionNames: ['expect', 'verify'] }],
'jest/no-conditional-in-test': 'warn',
'jest/no-untyped-mock-factory': 'error',
'jest/prefer-called-with': 'error',
'jest/prefer-comparison-matcher': 'warn',
'jest/prefer-equality-matcher': 'warn',
'jest/prefer-lowercase-title': 'error',
'jest/prefer-expect-assertions': [
'error',
{ onlyFunctionsWithExpectInLoop: true, onlyFunctionsWithExpectInCallback: true },
],
'jest/prefer-lowercase-title': 'error',
'jest/prefer-todo': 'error',
},
},
{
Expand Down

0 comments on commit 1855b9f

Please sign in to comment.