test: exercise dock fills with terminal color enabled
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user