Files
copilotkit__copilotkit/packages/bot-ui/vitest.config.ts
Alem Tuzlak 9f3b3c7126 feat(bot-ui): JSX runtime, IR, and cross-platform component vocabulary
Pure JSX runtime (no React, no Slack) producing a BotNode IR tree.
Statically typed component props via a package-owned JSX namespace:
unknown attributes, bad values, and bad children are compile errors.
Components: Message, Header, Section, Markdown, Field, Context,
Actions, Button, Select, Input, Image, Divider; bind() escape hatch
for non-serializable handler captures.
2026-06-10 10:46:08 -07:00

17 lines
548 B
TypeScript

import { defineConfig } from "vitest/config";
import { fileURLToPath } from "node:url";
export default defineConfig({
test: { include: ["src/**/*.test.ts", "src/**/*.test.tsx"] },
esbuild: { jsx: "automatic", jsxImportSource: "@copilotkit/bot-ui" },
resolve: {
alias: {
"@copilotkit/bot-ui/jsx-runtime": fileURLToPath(
new URL("./src/jsx-runtime.ts", import.meta.url),
),
"@copilotkit/bot-ui/jsx-dev-runtime": fileURLToPath(
new URL("./src/jsx-dev-runtime.ts", import.meta.url),
),
},
},
});