DEV Community

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

Collapse
 
sharpdog profile image
SharpDog

We do for the web and, surprisingly, it's not too intrusive / unwieldy although there has been some extra work in refactoring the tests as requirements change. We're using Karma / Jasmine unit testing several Angular sites. Time in CI for unit testing is about 30% of the build (~60% is npm updates).

We do not unit test the front end components for desktop apps used in-house (WPF).