Skip to content

Commit 55461d6

Browse files
committed
feat: add prefer-to-have-been-called-times to style config
BREAKING CHANGE: `prefer-to-have-been-called-times` is now enabled in the `style` config
1 parent 23144de commit 55461d6

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/__tests__/__snapshots__/rules.test.ts.snap

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ exports[`rules should export configs that refer to actual rules 1`] = `
253253
"jest/prefer-to-be": "error",
254254
"jest/prefer-to-contain": "error",
255255
"jest/prefer-to-have-been-called": "error",
256+
"jest/prefer-to-have-been-called-times": "error",
256257
"jest/prefer-to-have-length": "error",
257258
},
258259
},
@@ -296,6 +297,7 @@ exports[`rules should export configs that refer to actual rules 1`] = `
296297
"jest/prefer-to-be": "error",
297298
"jest/prefer-to-contain": "error",
298299
"jest/prefer-to-have-been-called": "error",
300+
"jest/prefer-to-have-been-called-times": "error",
299301
"jest/prefer-to-have-length": "error",
300302
},
301303
},

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ const styleRules = {
5757
'jest/prefer-to-contain': 'error',
5858
'jest/prefer-to-have-length': 'error',
5959
'jest/prefer-to-have-been-called': 'error',
60+
'jest/prefer-to-have-been-called-times': 'error',
6061
} satisfies Record<string, TSESLint.Linter.RuleLevel>;
6162

6263
const allRules = Object.fromEntries<TSESLint.Linter.RuleLevel>(

0 commit comments

Comments
 (0)