import { MyPipe } from 'here put your custom pipe path'; TestBed.configureTestingModule({ declarations: [ MyComponentUnderTesting, MyPipe ] })