import test from 'node:test'; import assert from 'node:assert/strict'; import React from 'react'; import { renderToStaticMarkup } from 'react-dom/server'; import { TerminalArtifactCard } from './TerminalArtifactCard.tsx'; test('TerminalArtifactCard renders terminal context summary', () => { const html = renderToStaticMarkup( , ); assert.match(html, /prod/); assert.match(html, /lines 101-103 \/ 120/); assert.doesNotMatch(html, /alpha/); }); test('TerminalArtifactCard renders terminal read errors', () => { const html = renderToStaticMarkup( , ); assert.match(html, /Terminal read failed/); assert.match(html, /Terminal context reader is unavailable/); });