re: Does your team write code tests for front-end code? VIEW POST

VIEW FULL DISCUSSION

I prefer to write Unit tests as well as E2E(Integration or Acceptance) tests for a frontend. Usually, there are a lot of flows which can confuse the user. Unit tests grant stability, so you can be sure that component will work if input data is valid. And E2E allows you to check the whole user flow.
Most complex - is to test interface (CSS) and check if interface corresponds to the design.

In web-land it definitely seems more common to test back-end code than front-end.

Everything should be automated no matter frontend or backend. If it will save your time - automate it.

code of conduct - report abuse