Files
vue-tui/packages/runtime-tests/vite.config.ts
T
Yunfei He 28d18bedda chore: add PTY test vitest config and ready integration
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-26 22:11:21 +08:00

17 lines
532 B
TypeScript

import { defineConfig } from "vite-plus";
import vueJsx from "@vitejs/plugin-vue-jsx";
export default defineConfig({
plugins: [vueJsx()],
test: {
// chalk disables color in non-TTY envs; force it on so ANSI style bugs don't hide from tests
env: { FORCE_COLOR: "3" },
// PTY tests run separately via vitest.pty.config.ts (they need node-pty, no parallelism, longer timeout)
exclude: ["integration/pty/**", "node_modules/**"],
},
lint: {
options: { typeAware: true, typeCheck: true },
},
fmt: {},
});