Merge branch 'master' into test-unit

# Conflicts:
#	packages/primevue/vitest.config.js
This commit is contained in:
uros 2024-08-01 15:29:34 +02:00
commit 1618e6d7db
19 changed files with 279 additions and 205 deletions

View file

@ -0,0 +1,23 @@
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, './config.setup.js')],
include: [path.resolve(__dirname, '../../**/*.spec.js')]
}
})
);