2023-03-31 23:25:56 +00:00
|
|
|
import vue from '@vitejs/plugin-vue';
|
|
|
|
import path from 'path';
|
|
|
|
import { mergeConfig } from 'vite';
|
|
|
|
import { defineConfig } from 'vitest/config';
|
2023-10-24 12:12:26 +00:00
|
|
|
import aliasConfig from './nuxt-vite.config.js';
|
2023-03-31 23:25:56 +00:00
|
|
|
|
|
|
|
export default mergeConfig(
|
2023-10-24 11:45:37 +00:00
|
|
|
aliasConfig,
|
2023-03-31 23:25:56 +00:00
|
|
|
defineConfig({
|
|
|
|
plugins: [vue()],
|
|
|
|
test: {
|
|
|
|
globals: true,
|
|
|
|
environment: 'jsdom',
|
2023-10-12 01:33:01 +00:00
|
|
|
onConsoleLog: (log, type) => {
|
|
|
|
if (type === 'stderr' && log.includes('Could not parse CSS stylesheet')) return false;
|
|
|
|
},
|
2023-03-31 23:25:56 +00:00
|
|
|
coverage: {
|
|
|
|
provider: 'istanbul',
|
|
|
|
reporter: ['text', 'json', 'html']
|
2023-04-28 13:58:46 +00:00
|
|
|
},
|
|
|
|
setupFiles: [path.resolve(__dirname, './components/lib/config/PrimeVue.spec.js')]
|
2023-03-31 23:25:56 +00:00
|
|
|
},
|
|
|
|
resolve: {
|
|
|
|
alias: {
|
|
|
|
'primevue/config': path.resolve(__dirname, './components/lib/config/PrimeVue.js')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
);
|