Skip to content

Commit

Permalink
Enable jest/consistent-test-it rule (as a warning) (facebook#37962)
Browse files Browse the repository at this point in the history
Summary:
X-link: facebook/metro#1008

Pull Request resolved: facebook#37962

Changelog: [Internal]

Reviewed By: robhogan, huntie

Differential Revision: D46838228

fbshipit-source-id: c0699b852897353fb3c92f8eade256effa4f4696
  • Loading branch information
motiz88 authored and facebook-github-bot committed Jun 22, 2023
1 parent ede86a3 commit 57bca8d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .eslintrc.js
Expand Up @@ -18,7 +18,7 @@ module.exports = {

extends: ['@react-native'],

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

overrides: [
// overriding the JS config from @react-native/eslint-config to ensure
Expand Down Expand Up @@ -70,6 +70,12 @@ module.exports = {
expect: true,
jest: true,
},
rules: {
'jest/consistent-test-it': [
'warn',
{fn: 'test', withinDescribe: 'test'},
],
},
},
{
files: ['**/__tests__/**/*-test.js'],
Expand Down

0 comments on commit 57bca8d

Please sign in to comment.