Addition to @testing-library/react
npm install @clds/testing-libraryAddition to @testing-library/react
- custom queries that work nicely with our test attributes: data-test and data-test-specifier
- custom render function (with TestThemeWrapper added by default and all specific queries)
- custom within function (with all specific queries)
Please note that we can still use render and within with original ...byTestId methods, but they are
bound to data-testid attribute by default. When using custom queries you don't need to executeconfigure({testIdAttribute: '...'}) in every file and we also don't need to set this globally
where not everyone is using React Testing Library
---

This library follows Semantic Versioning.
See LICENSE