test: support tests that include color information (#20220)

This commit is contained in:
Jacob Richman
2026-02-25 15:31:35 -08:00
committed by GitHub
parent 78dfe9dea8
commit f9f916e1dc
68 changed files with 2342 additions and 492 deletions
+3
View File
@@ -23,6 +23,9 @@ if (process.env.NO_COLOR !== undefined) {
delete process.env.NO_COLOR;
}
// Force true color output for ink so that snapshots always include color information.
process.env.FORCE_COLOR = '3';
import './src/test-utils/customMatchers.js';
let consoleErrorSpy: vi.SpyInstance;