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

View File

@@ -43,8 +43,11 @@ const mockCommands: readonly SlashCommand[] = [
];
describe('Help Component', () => {
it('should not render hidden commands', () => {
const { lastFrame, unmount } = render(<Help commands={mockCommands} />);
it('should not render hidden commands', async () => {
const { lastFrame, waitUntilReady, unmount } = render(
<Help commands={mockCommands} />,
);
await waitUntilReady();
const output = lastFrame();
expect(output).toContain('/test');
@@ -52,8 +55,11 @@ describe('Help Component', () => {
unmount();
});
it('should not render hidden subcommands', () => {
const { lastFrame, unmount } = render(<Help commands={mockCommands} />);
it('should not render hidden subcommands', async () => {
const { lastFrame, waitUntilReady, unmount } = render(
<Help commands={mockCommands} />,
);
await waitUntilReady();
const output = lastFrame();
expect(output).toContain('visible-child');
@@ -61,8 +67,11 @@ describe('Help Component', () => {
unmount();
});
it('should render keyboard shortcuts', () => {
const { lastFrame, unmount } = render(<Help commands={mockCommands} />);
it('should render keyboard shortcuts', async () => {
const { lastFrame, waitUntilReady, unmount } = render(
<Help commands={mockCommands} />,
);
await waitUntilReady();
const output = lastFrame();
expect(output).toContain('Keyboard Shortcuts:');