test: exercise dock fills with terminal color enabled

This commit is contained in:
Teknium
2026-09-07 23:33:38 -07:00
parent 3669e17a50
commit b3e5c437fc
+7 -1
View File
@@ -1,9 +1,10 @@
import { PassThrough } from 'node:stream'
import { renderSync } from '@hermes/ink'
import chalk from 'chalk'
import React from 'react'
import stripAnsi from 'strip-ansi'
import { expect, it } from 'vitest'
import { afterEach, beforeEach, expect, it } from 'vitest'
import { renderToScreen } from '../../packages/hermes-ink/src/ink/render-to-screen.js'
import { cellAtIndex } from '../../packages/hermes-ink/src/ink/screen.js'
@@ -12,6 +13,11 @@ import { buildAgentRows, dockRowLimit } from '../lib/agentRows.js'
import { DARK_THEME, DEFAULT_THEME, LIGHT_THEME } from '../theme.js'
import type { SubagentProgress } from '../types.js'
const colorLevel = chalk.level
beforeEach(() => { chalk.level = 3 })
afterEach(() => { chalk.level = colorLevel })
const agent = (id: string): SubagentProgress => ({
id,
goal: 'Investigate authentication handshake '.repeat(8),