- confugure vitest

pull/6170/head
uros 2024-08-01 15:32:14 +02:00
parent 1618e6d7db
commit fa844bda11
2 changed files with 1 additions and 19 deletions

View File

@ -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()
}))
});

View File

@ -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')]
}
})
);