mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-10 17:32:36 +00:00
Merge branch 'master' into test-unit
# Conflicts: # packages/primevue/vitest.config.js
This commit is contained in:
commit
1618e6d7db
19 changed files with 279 additions and 205 deletions
23
packages/primevue/vitest.config.js
Normal file
23
packages/primevue/vitest.config.js
Normal 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')]
|
||||
}
|
||||
})
|
||||
);
|
Loading…
Add table
Add a link
Reference in a new issue