From 35f56a5496b809dd3fd4d863b60219353b8fae9e Mon Sep 17 00:00:00 2001 From: Jarrod Whelan Date: Wed, 11 Feb 2026 02:26:24 -0800 Subject: [PATCH] test(cli): update test utilities and mock settings for compact output --- packages/cli/src/test-utils/render.tsx | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/packages/cli/src/test-utils/render.tsx b/packages/cli/src/test-utils/render.tsx index 9f413fafe8..a0c3192158 100644 --- a/packages/cli/src/test-utils/render.tsx +++ b/packages/cli/src/test-utils/render.tsx @@ -10,7 +10,7 @@ import type React from 'react'; import { vi } from 'vitest'; import { act, useState } from 'react'; import os from 'node:os'; -import { LoadedSettings } from '../config/settings.js'; +import type { LoadedSettings } from '../config/settings.js'; import { KeypressProvider } from '../ui/contexts/KeypressContext.js'; import { SettingsContext } from '../ui/contexts/SettingsContext.js'; import { ShellFocusContext } from '../ui/contexts/ShellFocusContext.js'; @@ -130,14 +130,11 @@ const configProxy = new Proxy({} as Config, { }, }); -export const mockSettings = new LoadedSettings( - { path: '', settings: {}, originalSettings: {} }, - { path: '', settings: {}, originalSettings: {} }, - { path: '', settings: {}, originalSettings: {} }, - { path: '', settings: {}, originalSettings: {} }, - true, - [], -); +export const mockSettings = createMockSettings({ + ui: { + enableCompactToolOutput: false, + }, +}); // A minimal mock UIState to satisfy the context provider. // Tests that need specific UIState values should provide their own.