Mock readable stream:

import { Readable } from 'stream';

const streamParts = ['Lorem', 'ipsum', 'dolor', 'sit', 'amet'];
const mockStream = new Readable();
streamParts.forEach((chunk) => mockStream.push(chunk));