Files
copilotkit__copilotkit/packages/web-components/vitest.config.mjs
Benjamin Taylor a7a6aa0c29 feat(web-components): add @copilotkit/web-components with the <copilotkit-drawer> element
Shadow-DOM Lit element that renders the threads drawer: self-contained styles
with build-time token sync from react-core's theme, slot projection for custom
rows, license/upsell gating, filtering, and a mobile modal. View-state lives on
the element; domain state stays with the host. Multi-format build (ESM/CJS
externalize lit as a peer dep; UMD inlines lit so the CDN <script> path is
self-contained).
2026-06-25 10:42:46 -05:00

25 lines
551 B
JavaScript

import path from "node:path";
import { fileURLToPath } from "node:url";
import { defineConfig } from "vitest/config";
const dirname = path.dirname(fileURLToPath(import.meta.url));
export default defineConfig({
test: {
environment: "jsdom",
include: ["**/__tests__/**/*.{test,spec}.ts"],
passWithNoTests: true,
globals: true,
server: {
deps: {
inline: ["lit", "@lit/reactive-element", "lit-element", "lit-html"],
},
},
},
resolve: {
alias: {
"@": path.join(dirname, "src"),
},
},
});