-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(jest): correctly test jest rules
- Loading branch information
1 parent
dff61a8
commit 617d895
Showing
5 changed files
with
1,938 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// eslint-disable-next-line import/no-commonjs | ||
module.exports = { | ||
rules: { | ||
'jest/consistent-test-it': ['error'], | ||
'jest/max-nested-describe': ['error', { max: 3 }], | ||
'jest/no-alias-methods': ['error'], | ||
'jest/no-duplicate-hooks': ['error'], | ||
'jest/no-test-return-statement': ['warn'], | ||
'jest/prefer-hooks-on-top': ['error'], | ||
'jest/prefer-spy-on': ['error'], | ||
'jest/require-to-throw-message': ['error'], | ||
'jest/require-top-level-describe': ['error'], | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// eslint-disable-next-line import/no-commonjs | ||
module.exports = { | ||
extends: ['algolia', 'algolia/react', 'algolia/typescript'], | ||
extends: ['algolia', 'algolia/react', 'algolia/typescript', 'algolia/jest'], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.