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
@@ -34,21 +34,27 @@ describe('ShortcutsHelp', () => {
),
)(
'renders correctly in $name mode on $platform.name',
({ width, platform }) => {
async ({ width, platform }) => {
Object.defineProperty(process, 'platform', {
value: platform.value,
});
const { lastFrame } = renderWithProviders(<ShortcutsHelp />, {
width,
});
const { lastFrame, waitUntilReady, unmount } = renderWithProviders(
<ShortcutsHelp />,
{
width,
},
);
await waitUntilReady();
expect(lastFrame()).toContain('shell mode');
expect(lastFrame()).toMatchSnapshot();
unmount();
},
);
it('always shows Tab Tab focus UI shortcut', () => {
it('always shows Tab Tab focus UI shortcut', async () => {
const rendered = renderWithProviders(<ShortcutsHelp />);
await rendered.waitUntilReady();
expect(rendered.lastFrame()).toContain('Tab Tab');
rendered.unmount();
});