You can mock the pipe:
import { MockPipe } from 'ng-mocks'; export const MockDatePipe = MockPipe(DatePipe);
And then import the MockDatePipe in the providers-array.