- 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
20 lines
550 B
TypeScript
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/**"],
|
|
},
|
|
},
|
|
});
|