Add RelaySelector

This commit is contained in:
Alex Gleason committed 2025-06-02 21:46:07 -05:00
1 parent 190f0cd791
commit a8163d7a6c
8 files changed
+339 -38

No files matched your search

+18 -1
View File
@@ -20,4 +20,21 @@ Object.defineProperty(window, 'matchMedia', {
Object.defineProperty(window, 'scrollTo', {
writable: true,
value: vi.fn(),
});
});
// Mock IntersectionObserver
global.IntersectionObserver = vi.fn().mockImplementation((_callback) => ({
observe: vi.fn(),
unobserve: vi.fn(),
disconnect: vi.fn(),
root: null,
rootMargin: '',
thresholds: [],
}));
// Mock ResizeObserver
global.ResizeObserver = vi.fn().mockImplementation((_callback) => ({
observe: vi.fn(),
unobserve: vi.fn(),
disconnect: vi.fn(),
}));