22 lines
511 B
JavaScript
22 lines
511 B
JavaScript
import { config } from '@vue/test-utils';
|
|
import { defaultOptions } from 'primevue/config';
|
|
|
|
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 () => {});
|
|
});
|