forked from primefaces/primevue
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vitest.config.js
29 lines (28 loc) · 928 Bytes
/
vitest.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import vue from '@vitejs/plugin-vue';
import path from 'path';
import { mergeConfig } from 'vite';
import { defineConfig } from 'vitest/config';
import aliasConfig from './nuxt-vite.config.js';
export default mergeConfig(
aliasConfig,
defineConfig({
plugins: [vue()],
test: {
globals: true,
environment: 'jsdom',
onConsoleLog: (log, type) => {
if (type === 'stderr' && log.includes('Could not parse CSS stylesheet')) return false;
},
coverage: {
provider: 'istanbul',
reporter: ['text', 'json', 'html']
},
setupFiles: [path.resolve(__dirname, './components/lib/config/PrimeVue.spec.js')]
},
resolve: {
alias: {
'primevue/config': path.resolve(__dirname, './components/lib/config/PrimeVue.js')
}
}
})
);