What is TestBed?

TestBed is actually an api which is used for writing unit tests for Angular applications and it’s libraries. Even though the users still write their tests in Jasmine and run using Karma, this API provides an easier way to create components, handle injection, test asynchronous behaviour and interact with the application.