DEV Community

Discussion on: Does your team write code tests for front-end code?

Collapse
 
roshan092 profile image
roshan092

Yes, started writing extensive test for front end when our team started using react. It helps if the framework you are using has good libraries to support testing. From what I have used react has enzyme and vue has vue test utils.

It can be tedious in the beginning, and can increase feature delivery time, but over the long run very beneficial. And of course it makes development FUN.

Collapse
 
napicella profile image
Nicola Apicella

Hi, I m kind of assuming you also use redux.
If so, what s the strategy you guys adopted to test connected components (redux)?
Do you test the component with or without a mock provider?
Thanks!