fix(cli): update remaining test mocks for consistent semantic-colors

This commit is contained in:
Keith Guerin
2026-03-01 20:12:49 -08:00
parent 23cb331657
commit 5f17506bc4
5 changed files with 17 additions and 0 deletions

View File

@@ -22,8 +22,13 @@ vi.mock('../semantic-colors.js', async (importOriginal) => {
...original,
theme: {
...original.theme,
background: {
...original.theme.background,
focus: '#004000',
},
ui: {
...original.theme.ui,
focus: '#00ff00',
gradient: [], // Empty array to potentially trigger the crash
},
},

View File

@@ -13,6 +13,10 @@ vi.mock('../semantic-colors.js', () => ({
theme: {
ui: {
gradient: ['red', 'blue'],
focus: 'green',
},
background: {
focus: 'darkgreen',
},
text: {
accent: 'cyan',

View File

@@ -27,6 +27,8 @@ vi.mock('./BaseSelectionList.js', () => ({
vi.mock('../../semantic-colors.js', () => ({
theme: {
text: { secondary: 'COLOR_SECONDARY' },
ui: { focus: 'COLOR_FOCUS' },
background: { focus: 'COLOR_FOCUS_BG' },
},
}));

View File

@@ -29,6 +29,9 @@ vi.mock('../semantic-colors.js', () => ({
status: {
warning: 'mock-warning-color',
},
ui: {
focus: 'mock-focus-color',
},
},
}));

View File

@@ -17,6 +17,9 @@ vi.mock('../semantic-colors.js', () => ({
accent: 'cyan',
link: 'blue',
},
ui: {
focus: 'green',
},
},
}));