移除多余测试依赖 @vitejs/plugin-react,改用内置 OXC JSX 配置(评审约束违反修复)

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
jacobxu666
2026-08-20 14:20:53 +08:00
co-authored by Claude Haiku 4.5
parent 0749ba2c38
commit 063420595d
3 changed files with 1 additions and 34 deletions
+1 -2
View File
@@ -1,11 +1,10 @@
import path from "node:path";
import react from "@vitejs/plugin-react";
import { defineConfig } from "vitest/config";
// xuchao: Vitest 配置——@ 别名对齐 tsconfig;组件测试文件用 // @vitest-environment jsdom 标注
export default defineConfig({
plugins: [react()],
resolve: { alias: { "@": path.resolve(__dirname, "src") } },
oxc: { jsx: { runtime: "automatic" } },
test: {
environment: "node",
include: ["src/**/*.test.{ts,tsx}"],