mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-15 09:46:19 +01:00
🧪 Add test for Plex
This commit is contained in:
8
setupVitest.ts
Normal file
8
setupVitest.ts
Normal 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();
|
||||
Reference in New Issue
Block a user