♻️ Pull request comments
This commit is contained in:
1 parent
4c9d1a1c01
commit
0d6346c73a
7 files changed
+24
-5
No files matched your search
@@ -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();
|
||||
Reference in new issue
Block a user