Skip to content

Commit 23144de

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

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
@@ -252,6 +252,7 @@ exports[`rules should export configs that refer to actual rules 1`] = `
252252
"rules": {
253253
"jest/prefer-to-be": "error",
254254
"jest/prefer-to-contain": "error",
255+
"jest/prefer-to-have-been-called": "error",
255256
"jest/prefer-to-have-length": "error",
256257
},
257258
},
@@ -294,6 +295,7 @@ exports[`rules should export configs that refer to actual rules 1`] = `
294295
"rules": {
295296
"jest/prefer-to-be": "error",
296297
"jest/prefer-to-contain": "error",
298+
"jest/prefer-to-have-been-called": "error",
297299
"jest/prefer-to-have-length": "error",
298300
},
299301
},

src/index.ts

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

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

0 commit comments

Comments
 (0)