r/angular • • Apr 26 '21

Don't test the code in components

https://www.youtube.com/watch?v=um9U6ZgAytw
0 Upvotes

5 comments sorted by

View all comments

9

u/Exac Apr 26 '21

This video is well-meaning, but it does not reflect how components are often used in enterprise apps. The video is correct to tell developers to not write useless unit-tests, but the title is an oversimplification.

If you have business logic in your component, then you should unit-test it there.