How to run Angular tests on CI Docker Container with Chrome

unsplash-logoSharosh Rajasekher In this article, we are going to learn how to run the tests of an Angular solution generated with @angular/cli into a Docker Container without changing any of the initial configuration generated by @angular/cli. This is very important in the context of Continuous Integration workflow when you want to run your tests as […]

Continue reading


Angular how to dynamically inject a component to DOM

Note: given the semver adopted from now on by Angular team, I will refer to all versions of Angular2+ as Angular. For the old Angular 1.x, I will use AngularJs In this post, we’ll take a look on how to dynamically inject a component into the DOM using a directive as a placeholder and ViewContainerRef Angular class. For simplicity, we will declare a new […]

Continue reading


Angular Jasmine Karma test when component has own module

Always remember that your TestBed.configureTestingModule() is there on your test to recreate your module the same way is created on the app. Let’s assume that you have a structure like following:  

In your.module you will import and declare all your three components and the pipe:

  Same way you should do in […]

Continue reading