callstack / react-native-testing-library

🦉 Simple and complete React Native testing utilities that encourage good testing practices.
https://callstack.github.io/react-native-testing-library/
MIT License
3.02k stars 264 forks source link

fix: matcher Jest extensions #1537

Closed mdjastrzebski closed 7 months ago

mdjastrzebski commented 7 months ago

Summary

Clean up TS issues reported in #1534 without duplicating type declarations.

This solution is modeled on approach used in Jest Expect package: https://github.com/jestjs/jest/blob/main/packages/jest-expect/src/types.ts

Test plan

codecov[bot] commented 7 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (067462f) 98.18% compared to head (86facf3) 98.18%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1537 +/- ## ======================================= Coverage 98.18% 98.18% ======================================= Files 99 99 Lines 5888 5888 Branches 913 913 ======================================= Hits 5781 5781 Misses 107 107 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

mdjastrzebski commented 7 months ago

🎉 This PR has been release in RNTL v12.4.1!