25 lines
576 B
JavaScript
25 lines
576 B
JavaScript
import { defineConfig } from 'vitest/config'
|
|
import vue from '@vitejs/plugin-vue'
|
|
import path from 'path'
|
|
|
|
export default defineConfig({
|
|
plugins: [vue()],
|
|
test: {
|
|
globals: true,
|
|
environment: 'jsdom',
|
|
resolveSnapshotPath: (testPath, snapshotExtension) => testPath + snapshotExtension,
|
|
coverage: {
|
|
provider: 'v8',
|
|
reporter: ['text', 'json', 'html'],
|
|
include: ['src/**/*.{js,vue}'],
|
|
all: true
|
|
},
|
|
exclude: ['e2e/**/*', 'node_modules/**/*']
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
'@': path.resolve(__dirname, './src')
|
|
}
|
|
}
|
|
})
|