Files
copilotkit__copilotkit/packages/a2ui-renderer/vitest.config.mjs
Alem Tuzlak 79ce60c580 chore: migrate from eslint+prettier to oxlint+oxfmt
Replace eslint and prettier with oxlint and oxfmt for faster linting
and formatting across the monorepo. Remove all eslint and prettier
configs, dependencies, and related packages. Add .oxlintrc.json and
.oxfmtrc.json for the new tooling. Update CI workflows and lefthook
hooks accordingly. Reformat codebase with oxfmt.

https://claude.ai/code/session_01GMkSf29p78HuMR1mbXn8He
2026-04-02 16:39:05 +02:00

33 lines
906 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));
// From package dir to repo root (pnpm store lives at root node_modules/.pnpm)
const root = path.resolve(dirname, "../../../");
export default defineConfig({
test: {
environment: "jsdom",
setupFiles: ["./src/__tests__/setup.ts"],
include: ["**/__tests__/**/*.{test,spec}.{ts,tsx}"],
passWithNoTests: true,
globals: true,
server: {
deps: {
inline: ["@a2ui/lit", "clsx", "markdown-it", "zod"],
},
},
},
resolve: {
alias: {
"@": path.join(dirname, "src"),
clsx: path.join(dirname, "src/__tests__/clsx-shim.ts"),
"markdown-it": path.join(
root,
"node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it",
),
},
},
});