test: add withProgress mock in selectAndExecute autoPr test

This commit is contained in:
nrslib 2026-02-10 21:58:01 +09:00
parent aeedf87a59
commit 0214f7f5e6

View File

@ -30,6 +30,11 @@ vi.mock('../shared/ui/index.js', () => ({
info: vi.fn(),
error: vi.fn(),
success: vi.fn(),
withProgress: async <T>(
_startMessage: string,
_completionMessage: string | ((result: T) => string),
operation: () => Promise<T>,
): Promise<T> => operation(),
}));
vi.mock('../shared/utils/index.js', async (importOriginal) => ({