23 lines
686 B
JavaScript
23 lines
686 B
JavaScript
import vue from '@vitejs/plugin-vue';
|
|
import path from 'path';
|
|
import { mergeConfig } from 'vite';
|
|
import { defineConfig } from 'vitest/config';
|
|
|
|
export default mergeConfig(
|
|
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, './src/config/Config.spec.js')]
|
|
}
|
|
})
|
|
);
|