You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary:
Originally proposed in react-native-community/discussions-and-proposals#592
Main changes are:
- Explicitly importing the global APIs in `App.test.tsx`
- Drop `types/jest` from the devDependency list
Benefits of these changes will be:
- Keep in line with Jest's recommended practice
- Remove a dev-dependency to make dependencies slimmer
References:
- jestjs/jest#13133
- DefinitelyTyped/DefinitelyTyped#62037
## Changelog
[GENERAL] [CHANGED] - Switch from `types/jest` to `jest/globals` for new react-native projects
Pull Request resolved: #36068
Test Plan:
1. Create a new RN project from the modified template
2. Ensure yarn test passes
3. Ensure IDEs do not complain about `App.test.tsx`
Reviewed By: cipolleschi
Differential Revision: D43080151
Pulled By: cortinico
fbshipit-source-id: c9161cb930c78f3a1eaa08ccb6483aa38d52fa3c
0 commit comments