Migrate core render util to use xterm.js as part of the rendering loop. (#19044)

This commit is contained in:
Jacob Richman
2026-02-18 16:46:50 -08:00
committed by GitHub
parent 04c52513e7
commit 04f65f3d55
213 changed files with 7065 additions and 3852 deletions
@@ -21,9 +21,13 @@ vi.mock('../semantic-colors.js', () => ({
}));
describe('ThemedGradient', () => {
it('renders children', () => {
const { lastFrame } = render(<ThemedGradient>Hello</ThemedGradient>);
it('renders children', async () => {
const { lastFrame, waitUntilReady, unmount } = render(
<ThemedGradient>Hello</ThemedGradient>,
);
await waitUntilReady();
expect(lastFrame()).toContain('Hello');
unmount();
});
// Note: Testing actual gradient application is hard with ink-testing-library