diff --git a/apps/showcase/config.setup.js b/apps/showcase/config.setup.js deleted file mode 100644 index 54cb1d177..000000000 --- a/apps/showcase/config.setup.js +++ /dev/null @@ -1,17 +0,0 @@ -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() - })) -}); diff --git a/packages/primevue/vitest.config.js b/packages/primevue/vitest.config.js index 6602f0560..0cd05af06 100644 --- a/packages/primevue/vitest.config.js +++ b/packages/primevue/vitest.config.js @@ -16,8 +16,7 @@ export default mergeConfig( provider: 'istanbul', reporter: ['text', 'json', 'html'] }, - setupFiles: [path.resolve(__dirname, './config.setup.js')], - include: [path.resolve(__dirname, '../../**/*.spec.js')] + setupFiles: [path.resolve(__dirname, './src/config/Config.spec.js')] } }) );