Which method in the TestBed is used to create an instance of a component or service for testing?

  • createComponent()
  • createService()
  • getComponent()
  • getService()
In Angular, you use the createComponent() method provided by TestBed to create an instance of a component for testing. This method allows you to set up and configure the component in a controlled testing environment.
Add your answer
Loading...

Leave a comment

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