Fix test flakes by globally mocking ink-spinner (#24044)

This commit is contained in:
Jacob Richman
2026-03-27 14:19:46 -07:00
committed by GitHub
parent f1a3c35dee
commit 97c99f263a
3 changed files with 27 additions and 5 deletions

View File

@@ -8,11 +8,6 @@ import { render, cleanup } from '../../../test-utils/render.js';
import { SubagentProgressDisplay } from './SubagentProgressDisplay.js';
import type { SubagentProgress } from '@google/gemini-cli-core';
import { describe, it, expect, vi, afterEach } from 'vitest';
import { Text } from 'ink';
vi.mock('ink-spinner', () => ({
default: () => <Text></Text>,
}));
describe('<SubagentProgressDisplay />', () => {
afterEach(() => {