You are writing a test for an Angular component that renders a list of items. You want to test that when a new item is added, it is correctly displayed in the component. Which testing technique or utility would be best suited for this?

  • End-to-End Testing with Protractor
  • Integration Testing with Karma and Jasmine
  • No testing needed - it's an Angular feature
  • Unit Testing with TestBed
For testing component behavior in isolation, Unit Testing with TestBed is the most suitable approach. It allows you to create an isolated testing environment for the component.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *