In my previous blog post, we learned that there were two ways to unit test Angular pipes:

  • isolated tests (without TestBed),
  • integrated tests (with TestBed).

But we put the focus on isolated tests. In this article, we are going to switch our focus on how to write integrated unit tests for Angular pipes.

We talk about integrated unit testing when we are testing the pipe in the same condition that it will be used at runtime. This means that we will test it when used inside an Angular component’s template.

#angular #testing

Angular Pipes: Integrated Unit Testing
1.05 GEEK