How to write component harnesses in Angular
Step by step guide to implement your first harness object for your Angular components
8 min readJan 25, 2022
Recently I wrote a blog post and published a video that describes how to test your Angular Material components with component harnesses.
People liked the approach. Some even wanted to learn more and were curious about providing harness objects for their components. They asked me if I could do a write-up. Hence this blog post.
Harness what? Only because you haven’t heard of harness testing yet, doesn’t mean that this blog post isn’t for you. However, if you are new to the topic I recommend you either check out my blog post or watch my video tutorial about harness testing.