I was using TooltipModule from ng2-bootstrap and recently switched to ngx-bootstrap. Tooltips work fine in my application - no issues. However, in my Angular component test, when I import the following:
import { TooltipModule } from 'ngx-bootstrap';
and then in the TestBed, Import the following:
TestBed.configureTestingModule({imports: [TooltipModule.forRoot(),
Tooltips are not rendered. I dont see the tooltip in dev console under Elements tab in my browser. When I use the import from ng2-bootstrap as:
import { TooltipModule } from 'ng2-bootstrap';
everything works fine. I see the tooltip rendered.
What is the issue here? Tooltip works fine in my app. Only in Angular test, I am having issues. Do I need to do anything differently or extra in my tests to make tooltips work from ngx-bootstrap?