🧪 Add test for Plex

This commit is contained in:
Manuel
2023-03-20 23:17:17 +01:00
parent 0b237f27f7
commit 6633d21788
8 changed files with 192 additions and 11 deletions

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