diff --git a/components/lib/config/PrimeVue.spec.js b/components/lib/config/PrimeVue.spec.js index c6b990b52..85f7d5f8f 100644 --- a/components/lib/config/PrimeVue.spec.js +++ b/components/lib/config/PrimeVue.spec.js @@ -5,6 +5,17 @@ config.global.mocks['$primevue'] = { config: defaultOptions }; +Object.defineProperty(window, 'matchMedia', { + writable: true, + value: vi.fn().mockImplementation((query) => ({ + matches: false, + media: query, + onchange: null, + addEventListener: vi.fn(), + removeEventListener: vi.fn() + })) +}); + describe('PrimeVue.vue', () => { it('should exist', async () => {}); });