When I use the React dev tools I can view all the props and their values for a component. Is there a way to extract that into JavaScript so I can copy/paste them into my tests to use as test data?
It's easy enough with strings and numbers, but with arrays and objects, especially when nested, its a lot more work.
Aucun commentaire:
Enregistrer un commentaire