Unable to mock API request
问题 Having a really hard time setting up jest-test-mock in in my TypeScript project. I was wondering if someone could point me in the right direction? I've got a function that looks like this: retrieveData.ts import fetch from 'cross-fetch'; export async function retrieveData({ endpoint, configuration, auth }: dataInterface): Promise<object> { try { console.log('Fetching the requested data... 📦') const settings = configuration ? JSON.parse(render(configuration || '', auth)) : {} if (settings.body