Files
vercel__chat/packages/chat/vitest.config.ts
Hayden Bleasel e970a6939b Upgrade Biome configuration to use Ultracite preset (#81)
* 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
2026-02-20 22:01:10 -08:00

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"],
},
},
});