Closed SpeCT closed 3 months ago
test('GET foo', async () => { mock('https://example.com/', { data: { name: 'Foo' } }) const res = await fetch('https://example.com/).then(r => r.json()) // <<- crash expect(res.name).toBe('Foo') // <<- never })
Thanks for the contribution @SpeCT 🚀 Your PRs has been merged and are included in the 1.0.9 release.