mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
e78c01375a
Summary: The `__mocks__` directories should be treated the same as `__tests__` for the purpose of linting. See https://jestjs.io/docs/en/manual-mocks ## Changelog [Internal] [Changed] - eslint: allow jest globals in `__mocks__` directories Pull Request resolved: https://github.com/facebook/react-native/pull/25738 Test Plan: I installed the updated package locally in my project and verified that the `no-undef` rule no longer fires for references to `jest` in `__mocks__` directories. Differential Revision: D16515546 Pulled By: osdnk fbshipit-source-id: ae78b95d33d1b48ffa4aafa7a53c83e152d176b2