I'm wondering, what's your approach while testing React component using Jest snapshots.
Are you testing every component?
How do you determine if you should create a snapshot for component?
Are you testing whole views or only smaller components (view pieces)?
When should one add props to tested components? Should functions always be mocked using jest.fn() ?
Aucun commentaire:
Enregistrer un commentaire