@clds/testing-library
TypeScript icon, indicating that this package has built-in type declarations

0.38.0 • Public • Published

@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


npm version

Versioning

This library follows Semantic Versioning.

License

See LICENSE

Readme

Keywords

none

Package Sidebar

Install

npm i @clds/testing-library

Weekly Downloads

1,135

Version

0.38.0

License

none

Unpacked Size

85.6 kB

Total Files

38

Last publish

Collaborators

  • cloudinary-internal