test: install Vitest and configure frontend test runner

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Dorian
2026-03-10 23:34:14 +00:00
co-authored by Claude Opus 4.6
parent d69c0d6724
commit e6cd18d8ea
4 changed files with 1384 additions and 1 deletions
+18
View File
@@ -0,0 +1,18 @@
import { defineConfig } from 'vitest/config'
import vue from '@vitejs/plugin-vue'
import path from 'path'
export default defineConfig({
plugins: [vue()],
resolve: {
alias: {
'@': path.resolve(__dirname, './src')
}
},
test: {
environment: 'jsdom',
globals: true,
root: '.',
passWithNoTests: true,
}
})