♻️ Pull request comments

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

No files matched your search

+8
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();