@clds/testing-library
v0.47.0
Published
Addition to @testing-library/react
Downloads
289
Readme
@clds/testing-library
Addition 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)
Note
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 execute
configure({testIdAttribute: '...'})
in every file and we also don't need to set this globally
where not everyone is using React Testing Library
Versioning
This library follows Semantic Versioning.
License
See LICENSE