Skip to content

Commit c8e26e6

Browse files
michalchudziakfacebook-github-bot
authored andcommitted
Fix eslint glob for .test.js and .spec.js files. (#24088)
Summary: Existing glob might not work very well with `spec.js` and `test.js` files unless they're placed in `__tests__` directory. This PR aims to bring back the support of `jest` globals in these files, even if they're outside of `__tests__` directory. [General] [Fixed] - Fixed globs for `spec.js` and `test.js` files. Pull Request resolved: #24088 Differential Revision: D14562085 Pulled By: cpojer fbshipit-source-id: 543d67e3f8a154256f454b34ccc68bb070197a75
1 parent 395197d commit c8e26e6

File tree

1 file changed

+1
-1
lines changed
  • packages/eslint-config-react-native-community

1 file changed

+1
-1
lines changed

packages/eslint-config-react-native-community/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ module.exports = {
3131
},
3232

3333
overrides: {
34-
files: ['**/__tests__/**/*.js', '**/?(*.)(spec|test).js'],
34+
files: ['**/__tests__/**/*.js', '**/*.spec.js', '**/*.test.js'],
3535
env: {
3636
jest: true,
3737
'jest/globals': true,

0 commit comments

Comments
 (0)