openclaw/apps/web/vitest.config.ts
kumarabhirup 8eb25cfcb7
chore: update tsconfig and vitest config
Exclude extensions and test from tsconfig; remove extensions from vitest include.
2026-03-03 13:48:10 -08:00

26 lines
487 B
TypeScript

import { defineConfig } from "vitest/config";
import path from "node:path";
export default defineConfig({
esbuild: {
jsx: "automatic",
jsxImportSource: "react",
},
resolve: {
alias: {
"@": path.resolve(__dirname),
},
},
test: {
environment: "node",
setupFiles: ["./vitest.setup.ts"],
include: [
"lib/**/*.test.ts",
"lib/**/*.test.tsx",
"app/**/*.test.ts",
"app/**/*.test.tsx",
],
testTimeout: 30_000,
},
});