general-eval-card / vitest.config.ts
Jenny Chim
Add DuckDB shadow-read backend with source-metadata fix
2fcae3f
Raw
History Blame
721 Bytes
import { fileURLToPath } from "url"
import { defineConfig } from "vitest/config"
export default defineConfig({
resolve: {
alias: {
"@": fileURLToPath(new URL(".", import.meta.url)),
"server-only": fileURLToPath(new URL("./tests/server-only-stub.ts", import.meta.url)),
},
},
test: {
// upstream-drift.test.ts walks the full live HF cache (~16s) and is opt-in
// via `pnpm test:drift`. The drift script sets RUN_DRIFT=1; the test file
// self-skips otherwise. We DON'T exclude the path here because vitest's
// exclude wins over an explicit path arg, which would silently make
// `pnpm test:drift` find zero tests.
exclude: ["**/node_modules/**", "**/dist/**"],
},
})