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
@@ -61,7 +61,7 @@ describe('DescriptiveRadioButtonSelect', () => {
},
];
const renderComponent = (
const renderComponent = async (
props: Partial<DescriptiveRadioButtonSelectProps<string>> = {},
) => {
const defaultProps: DescriptiveRadioButtonSelectProps<string> = {
@@ -69,22 +69,25 @@ describe('DescriptiveRadioButtonSelect', () => {
onSelect: mockOnSelect,
...props,
};
return renderWithProviders(
const result = renderWithProviders(
<DescriptiveRadioButtonSelect {...defaultProps} />,
);
await result.waitUntilReady();
return result;
};
beforeEach(() => {
vi.clearAllMocks();
});
it('should render correctly with default props', () => {
const { lastFrame } = renderComponent();
it('should render correctly with default props', async () => {
const { lastFrame, unmount } = await renderComponent();
expect(lastFrame()).toMatchSnapshot();
unmount();
});
it('should render correctly with custom props', () => {
const { lastFrame } = renderComponent({
it('should render correctly with custom props', async () => {
const { lastFrame, unmount } = await renderComponent({
initialIndex: 1,
isFocused: false,
showScrollArrows: true,
@@ -93,5 +96,6 @@ describe('DescriptiveRadioButtonSelect', () => {
onHighlight: mockOnHighlight,
});
expect(lastFrame()).toMatchSnapshot();
unmount();
});
});