DEV Community

Ovidiu Miu
Ovidiu Miu

Posted on

Angular - No need to import CommonModule in TestBed

I found some imports of CommonModule in my TestBeds and I investigated a bit why.

And I found out that there is no need to import the CommonModule in a TestBed, since the TestBed automatically imports it.

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay