init local code

This commit is contained in:
chenxing
2026-09-07 09:11:37 +08:00
commit a3a75c3680
112 changed files with 24837 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
import { defineConfig } from "vitest/config";
import vue from "@vitejs/plugin-vue";
import path from "path";
/**
* vitest 单测配置(方案 §8.4 前端最小集:仅纯函数 themeParamForm,不引组件挂载基建)。
* alias 与主 vite.config.ts 保持一致。
*/
export default defineConfig({
plugins: [vue()],
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
test: {
environment: "node",
include: ["src/**/*.spec.ts"],
},
});