Skip to content

Commit 5d4511a

Browse files
motiz88facebook-github-bot
authored andcommitted
Enable jest/consistent-test-it rule (as a warning)
Differential Revision: D46838228 fbshipit-source-id: 64b82ab67ff08f488508643feeed2a7e69bc632f
1 parent 0201e51 commit 5d4511a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.eslintrc.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ module.exports = {
1818

1919
extends: ['@react-native'],
2020

21-
plugins: ['@react-native/eslint-plugin-specs', 'lint'],
21+
plugins: ['@react-native/eslint-plugin-specs', 'jest', 'lint'],
2222

2323
overrides: [
2424
// overriding the JS config from @react-native/eslint-config to ensure
@@ -70,6 +70,12 @@ module.exports = {
7070
expect: true,
7171
jest: true,
7272
},
73+
rules: {
74+
'jest/consistent-test-it': [
75+
'warn',
76+
{fn: 'test', withinDescribe: 'test'},
77+
],
78+
},
7379
},
7480
{
7581
files: ['**/__tests__/**/*-test.js'],

0 commit comments

Comments
 (0)