Files
NianAIGC/vitest.config.ts
2026-09-23 13:33:47 +08:00

16 lines
372 B
TypeScript

import { defineConfig } from "vitest/config";
export default defineConfig({
oxc: { jsx: { runtime: "automatic" } },
test: {
environment: "node",
include: ["tests/**/*.test.ts"]
},
resolve: {
alias: {
"@": new URL(".", import.meta.url).pathname,
"server-only": new URL("./tests/server-only-stub.ts", import.meta.url).pathname
}
}
});