-
Notifications
You must be signed in to change notification settings - Fork 274
feat: Support for @testing-library/jest-native #310
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Support for @testing-library/jest-native #310
Conversation
* Basic async findBy queries * Refactored findBy queries to be built with makeFindQuery * findBy queries for A11y selectors * Custom findByTestId implementation that avoids current getByTestId issues * Fixed prettier issue * Updates Queries.md with findBy queries * Trying to fix test timeout error appearing only on CI * Code review changes * Added typescript types & tests * prettier did reformat some code arround * Removed export of GetByAPI, QueryByAPI and FindByAPI interfaces in TS * Reversed prettier run on typings * Added overlapping pieces with `within` operator * Small cleanup * Update website/docs/Queries.md * Moved async/await tests to the end of test methods Co-authored-by: Michał Pierzchała <thymikee@gmail.com>
* chore: bump eslint config to latest * lint fix * lint pass * use roles directly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any idea how to remove the multiple $FlowFixme
comments?
…ation # Conflicts: # yarn.lock
@cross19xx This seems to be actually @testing-library/jest-native issue with incomplete flow typings, as they are inferred by flow, and not exported by library. So the code works correctly in runtime, but |
Summary
Added support for @testing-library/jest-native matchers by providing unit tests in our project, as well as documentation for setting up these matchers.
Fixes #298
Test plan
Added unit tests for @testing-library/jest-native matchers. Run
yarn test