/** * @license * Copyright 2026 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { describe, it, expect } from 'vitest'; import { ProgressBar } from './ProgressBar.js'; import { renderWithProviders } from '../../test-utils/render.js'; describe('', () => { it('renders 0% correctly', async () => { const { lastFrame } = await renderWithProviders( , ); expect(lastFrame()).toMatchSnapshot(); }); it('renders 50% correctly', async () => { const { lastFrame } = await renderWithProviders( , ); expect(lastFrame()).toMatchSnapshot(); }); it('renders warning threshold correctly', async () => { const { lastFrame } = await renderWithProviders( , ); expect(lastFrame()).toMatchSnapshot(); }); it('renders error threshold correctly at 100%', async () => { const { lastFrame } = await renderWithProviders( , ); expect(lastFrame()).toMatchSnapshot(); }); });