chore: set FORCE_COLOR=1 in test env for realistic ANSI output
Tests must exercise the same ANSI code paths users see. Without FORCE_COLOR, chalk disables all color in non-TTY test environments, making style bugs invisible to the test suite. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -3,6 +3,10 @@ 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: "1" },
|
||||
},
|
||||
lint: {
|
||||
options: { typeAware: true, typeCheck: true },
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user