♻️ Pull request comments

This commit is contained in:
Manuel
2023-03-22 13:29:00 +01:00
parent 4c9d1a1c01
commit 0d6346c73a
7 changed files with 24 additions and 5 deletions

8
tests/setupVitest.ts Normal file
View File

@@ -0,0 +1,8 @@
//setupVitest.js or similar file
import createFetchMock from 'vitest-fetch-mock';
import { vi } from 'vitest';
const fetchMocker = createFetchMock(vi);
// sets globalThis.fetch and globalThis.fetchMock to our mocked version
fetchMocker.enableMocks();