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
@@ -15,17 +15,23 @@ describe('<CliSpinner />', () => {
debugState.debugNumAnimatedComponents = 0;
});
it('should increment debugNumAnimatedComponents on mount and decrement on unmount', () => {
it('should increment debugNumAnimatedComponents on mount and decrement on unmount', async () => {
expect(debugState.debugNumAnimatedComponents).toBe(0);
const { unmount } = renderWithProviders(<CliSpinner />);
const { waitUntilReady, unmount } = renderWithProviders(<CliSpinner />);
await waitUntilReady();
expect(debugState.debugNumAnimatedComponents).toBe(1);
unmount();
expect(debugState.debugNumAnimatedComponents).toBe(0);
});
it('should not render when showSpinner is false', () => {
it('should not render when showSpinner is false', async () => {
const settings = createMockSettings({ ui: { showSpinner: false } });
const { lastFrame } = renderWithProviders(<CliSpinner />, { settings });
expect(lastFrame()).toBe('');
const { lastFrame, waitUntilReady, unmount } = renderWithProviders(
<CliSpinner />,
{ settings },
);
await waitUntilReady();
expect(lastFrame({ allowEmpty: true })).toBe('');
unmount();
});
});