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
@@ -31,32 +31,35 @@ const mockTools: ToolDefinition[] = [
];
describe('<ToolsList />', () => {
it('renders correctly with descriptions', () => {
const { lastFrame } = renderWithProviders(
it('renders correctly with descriptions', async () => {
const { lastFrame, waitUntilReady } = renderWithProviders(
<ToolsList
tools={mockTools}
showDescriptions={true}
terminalWidth={40}
/>,
);
await waitUntilReady();
expect(lastFrame()).toMatchSnapshot();
});
it('renders correctly without descriptions', () => {
const { lastFrame } = renderWithProviders(
it('renders correctly without descriptions', async () => {
const { lastFrame, waitUntilReady } = renderWithProviders(
<ToolsList
tools={mockTools}
showDescriptions={false}
terminalWidth={40}
/>,
);
await waitUntilReady();
expect(lastFrame()).toMatchSnapshot();
});
it('renders correctly with no tools', () => {
const { lastFrame } = renderWithProviders(
it('renders correctly with no tools', async () => {
const { lastFrame, waitUntilReady } = renderWithProviders(
<ToolsList tools={[]} showDescriptions={true} terminalWidth={40} />,
);
await waitUntilReady();
expect(lastFrame()).toMatchSnapshot();
});
});