th3rdwave / react-native-safe-area-context

A flexible way to handle safe area insets in JS. Also works on Android and Web!
MIT License
2.14k stars 197 forks source link

Mock should use @jest/globals #458

Closed trajano closed 9 months ago

trajano commented 10 months ago

https://github.com/th3rdwave/react-native-safe-area-context/blob/main/jest/mock.tsx has an implied jest it should use @jest/globals as per https://jestjs.io/docs/getting-started#type-definitions as per the note about it

@types/jest is a third party library maintained at DefinitelyTyped, hence the latest Jest features or versions may not be covered yet. Try to match versions of Jest and @types/jest as closely as possible. For example, if you are using Jest 27.4.0 then installing 27.4.x of @types/jest is ideal.

jacobp100 commented 10 months ago

Fancy doing a PR?