Files
fusion/packages/tui/vitest.config.ts
gsxdsm a731c5952b feat(FN-969): scaffold TUI package with Ink entry point and vitest config
- Create @fusion/tui package structure with ink and react dependencies
- Add basic App component entry point using Ink's Box and Text primitives
- Configure vitest with passWithNoTests and coverage settings
- Fix tsconfig to exclude vitest/globals types from production build
2026-04-05 10:41:01 -07:00

20 lines
550 B
TypeScript

import { defineConfig } from "vitest/config";
const maxWorkers = Number.parseInt(process.env.VITEST_MAX_WORKERS ?? "16", 10);
export default defineConfig({
test: {
include: ["src/**/*.test.ts", "src/**/*.test.tsx"],
passWithNoTests: true,
maxWorkers,
fileParallelism: true,
coverage: {
enabled: false,
reporter: ["text", "html", "json"],
reportsDirectory: "./coverage",
include: ["src/**/*.ts", "src/**/*.tsx"],
exclude: ["**/*.test.ts", "**/*.test.tsx", "**/*.d.ts", "dist/**"],
},
},
});