Skip to content

Commit

Permalink
feat(jest): Add jest/prefer-jest-mocked rule
Browse files Browse the repository at this point in the history
  • Loading branch information
MorevM committed Jun 22, 2024
1 parent 1e57b7a commit ec187be
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions configurations/jest/rules/jest.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,10 @@ module.exports = {
// https://github.com/jest-community/eslint-plugin-jest/blob/main/docs/rules/prefer-importing-jest-globals.md
'jest/prefer-importing-jest-globals': 'off',

// Prefer `jest.mocked()` over fn as `jest.Mock` (autofixable)
// https://github.com/jest-community/eslint-plugin-jest/blob/main/docs/rules/prefer-jest-mocked.md
'jest/prefer-jest-mocked': 'warn',

// Enforce lowercase test names (autofixable)
// https://github.com/jest-community/eslint-plugin-jest/blob/main/docs/rules/prefer-lowercase-title.md
'jest/prefer-lowercase-title': 'off',
Expand Down

0 comments on commit ec187be

Please sign in to comment.