mirror of
https://github.com/vercel/chat.git
synced 2026-09-14 18:32:29 +08:00
e970a6939b
* Upgrade Biome to Ultracite * Remove package commands * Update biome.jsonc * Update biome.jsonc * Initial fixes * Update biome.jsonc * Remaining fixes * Update pnpm-lock.yaml * Fix commands * Update knip.json * Merge Claude files * Fix skipped test * Misc fixes
29 lines
712 B
TypeScript
29 lines
712 B
TypeScript
import { resolve } from "node:path";
|
|
import { defineConfig } from "vitest/config";
|
|
|
|
export default defineConfig({
|
|
esbuild: {
|
|
jsx: "automatic",
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
// Map JSX runtime imports to our custom runtime
|
|
"react/jsx-runtime": resolve(import.meta.dirname, "src/jsx-runtime.ts"),
|
|
"react/jsx-dev-runtime": resolve(
|
|
import.meta.dirname,
|
|
"src/jsx-runtime.ts"
|
|
),
|
|
},
|
|
},
|
|
test: {
|
|
globals: true,
|
|
environment: "node",
|
|
coverage: {
|
|
provider: "v8",
|
|
reporter: ["text", "json-summary"],
|
|
include: ["src/**/*.ts", "src/**/*.tsx"],
|
|
exclude: ["src/**/*.test.ts", "src/**/*.test.tsx", "src/mock-adapter.ts"],
|
|
},
|
|
},
|
|
});
|