replace Jest with Vitest

This commit is contained in:
MaysWind
2026-04-25 00:56:58 +08:00
parent 1428ce921c
commit de885c963d
11 changed files with 867 additions and 3098 deletions
+23
View File
@@ -0,0 +1,23 @@
import { defineConfig } from 'vitest/config';
import vue from '@vitejs/plugin-vue';
import path from 'node:path';
export default defineConfig({
plugins: [vue()],
resolve: {
alias: {
'@': path.resolve(__dirname, './src')
}
},
test: {
environment: 'node',
clearMocks: true,
restoreMocks: true,
mockReset: true,
isolate: true,
coverage: {
provider: 'v8',
reporter: ['text', 'html']
}
}
})