In a unit test to just create (instantiate) a component that has a DomSanitizer dependency, how does one mock / stub this dependency?
DomSanitizer
Because DomSanit
DomSanit
As a workaround, try add sanitize: () => 'safeString',
sanitize: () => 'safeString',
... useValue: { sanitize: () => 'safeString', bypassSecurityTrustHtml: () => 'safeString' } ...