An enhanced query builder for Testing Library with composable queries, TypeScript support, and CSS selector helpers.
testing-library-queries is a library that extends Testing Library with a composable, chainable query API. It addresses common pain points like verbose syntax, lack of strong TypeScript inference, and difficulty creating reusable query logic, making tests cleaner and more maintainable.
intersect(), transform(), and other builders.getBySelector() and similar methods for raw CSS selectors.screen.get(by.role('button')) as a shorthand alternative.buildQuery.from().The library is designed to enhance Testing Library's core principles by providing a more flexible and type-safe API for query composition, encouraging cleaner test code without sacrificing accessibility best practices.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.