Looking to simulate ElementRef and access getBoundingClientRect()
I experimented with the code below, but it didn't yield the expected results.
const mockHostRef = {
nativeElement: {
getBoundingClientRect: {top: 10, left: 10}
}
}
{provide: ElementRef, useFactory: () => mockHostRef}