mercredi 30 décembre 2020

React Test for a Component Every Time its Rendered/Used

Does anyone know if there is a way to test a React component every time and everywhere it is used? That is without having to write a test for the specific page it is being used on.

For example if I have a Button component, can there be a test for that component that is run whenever/wherever it's used?

Aucun commentaire:

Enregistrer un commentaire