mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-10 09:22:34 +00:00
Test implementation fixes
This commit is contained in:
parent
4e17ef2588
commit
95b5af1884
6 changed files with 44 additions and 17 deletions
27
packages/primevue/vitest.config.js
Normal file
27
packages/primevue/vitest.config.js
Normal file
|
@ -0,0 +1,27 @@
|
|||
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')]
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
//'primevue/config': path.resolve(__dirname, './components/lib/config/PrimeVue.js')
|
||||
}
|
||||
}
|
||||
})
|
||||
);
|
Loading…
Add table
Add a link
Reference in a new issue