¿Cómo espiar el método clipboard.copy ? Para
const clipboard = TestBed.inject(Clipboard); spyOn(clipboard, 'copy').and.returnValue(true);recibo una advertencia de que
Argument of type '"copy"' is not assignable to parameter of type 'keyof Clipboard'. También he intentado agregar esto a las importaciones y declaraciones: 
Esto es CopyToClipboardHost
class CopyToClipboardHost { public content = ''; public attempts = 1; public copied = jasmine.createSpy('copied spy'); }No sé por qué no funcionó en su caso, pero logré crear un caso de prueba simple y funciona correctamente:
import {Component} from '@angular/core'; import {ComponentFixture, TestBed, waitForAsync} from '@angular/core/testing'; import {Clipboard} from '@angular/cdk/clipboard'; import createSpyObj = jasmine.createSpyObj; @Component({ selector: 'app-root', template: '' }) export class SampleComponent { constructor(private clipboard: Clipboard) { } copySomething(): void { this.clipboard.copy('test'); } } describe('SampleComponent', () => { let fixture: ComponentFixture<SampleComponent>; let component: SampleComponent; const clipboardSpy = createSpyObj<Clipboard>('Clipboard', ['copy']); beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ declarations: [SampleComponent], providers: [{provide: Clipboard, useValue: clipboardSpy}] }).compileComponents(); })); beforeEach(() => { fixture = TestBed.createComponent(SampleComponent); component = fixture.componentInstance; fixture.detectChanges(); }); it('should call clipboard copy', () => { component.copySomething(); expect(clipboardSpy.copy).toHaveBeenCalledWith('test'); }); }); Una cosa a tener en cuenta: no importe módulos externos a TestingModule , ya que desea probar solo su componente, en lugar de simular/espiar las dependencias requeridas.