2026-05-24 18:13:53 +08:00
|
|
|
import { defineConfig } from "vite-plus";
|
|
|
|
|
import vueJsx from "@vitejs/plugin-vue-jsx";
|
|
|
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
|
plugins: [vueJsx()],
|
2026-05-25 17:47:00 +08:00
|
|
|
test: {
|
2026-05-29 14:54:16 +08:00
|
|
|
// chalk disables color in non-TTY envs; force it on so ANSI style bugs don't hide from tests.
|
|
|
|
|
// CI:"false" because the runner sets CI=true, which flips vue-tui's interactive
|
|
|
|
|
// detection (interactive = !isInCi && isTTY) off — disabling the resize listener,
|
|
|
|
|
// cursor, and ANSI erases that these render tests exercise. The PTY child helpers
|
|
|
|
|
// already force CI=false for the same reason; do it for the in-process suite too.
|
|
|
|
|
env: { FORCE_COLOR: "3", CI: "false" },
|
2026-05-29 14:50:09 +08:00
|
|
|
// Files parallelize, but tests within a file run serially: many assert
|
|
|
|
|
// timing-sensitive render/commit/flush counts that destabilize under
|
|
|
|
|
// in-file concurrency on a constrained (4-core) CI runner.
|
2026-05-29 11:37:26 +08:00
|
|
|
// PTY tests run separately via vitest.pty.config.ts (they need node-pty's forks pool and a longer timeout)
|
2026-05-26 22:11:21 +08:00
|
|
|
exclude: ["integration/pty/**", "node_modules/**"],
|
2026-05-25 17:47:00 +08:00
|
|
|
},
|
2026-05-24 18:13:53 +08:00
|
|
|
lint: {
|
2026-06-14 19:25:20 +08:00
|
|
|
ignorePatterns: ["integration/pty/fixtures/**", "integration/subprocess-fixtures/*.mjs"],
|
2026-05-24 18:13:53 +08:00
|
|
|
},
|
|
|
|
|
});
|