chore: test cleanup

This commit is contained in:
Jack Wotherspoon
2026-02-16 13:13:00 -05:00
committed by Keith Guerin
parent 2796db5a49
commit bfcf4959ba
2 changed files with 6 additions and 19 deletions
-11
View File
@@ -12,70 +12,60 @@ export const ALL_ITEMS = [
header: 'Path', header: 'Path',
label: 'cwd', label: 'cwd',
description: 'Current directory path', description: 'Current directory path',
defaultEnabled: true,
}, },
{ {
id: 'git-branch', id: 'git-branch',
header: 'Branch', header: 'Branch',
label: 'git-branch', label: 'git-branch',
description: 'Current git branch name', description: 'Current git branch name',
defaultEnabled: true,
}, },
{ {
id: 'sandbox-status', id: 'sandbox-status',
header: '/docs', header: '/docs',
label: 'sandbox-status', label: 'sandbox-status',
description: 'Sandbox type and trust indicator', description: 'Sandbox type and trust indicator',
defaultEnabled: true,
}, },
{ {
id: 'model-name', id: 'model-name',
header: '/model', header: '/model',
label: 'model-name', label: 'model-name',
description: 'Current model identifier', description: 'Current model identifier',
defaultEnabled: true,
}, },
{ {
id: 'context-remaining', id: 'context-remaining',
header: 'Context', header: 'Context',
label: 'context-remaining', label: 'context-remaining',
description: 'Percentage of context window remaining', description: 'Percentage of context window remaining',
defaultEnabled: false,
}, },
{ {
id: 'quota', id: 'quota',
header: '/stats', header: '/stats',
label: 'quota', label: 'quota',
description: 'Remaining usage on daily limit', description: 'Remaining usage on daily limit',
defaultEnabled: true,
}, },
{ {
id: 'memory-usage', id: 'memory-usage',
header: 'Memory', header: 'Memory',
label: 'memory-usage', label: 'memory-usage',
description: 'Node.js heap memory usage', description: 'Node.js heap memory usage',
defaultEnabled: false,
}, },
{ {
id: 'session-id', id: 'session-id',
header: 'Session', header: 'Session',
label: 'session-id', label: 'session-id',
description: 'Unique identifier for the current session', description: 'Unique identifier for the current session',
defaultEnabled: false,
}, },
{ {
id: 'code-changes', id: 'code-changes',
header: 'Diff', header: 'Diff',
label: 'code-changes', label: 'code-changes',
description: 'Lines added/removed in the session', description: 'Lines added/removed in the session',
defaultEnabled: true,
}, },
{ {
id: 'token-count', id: 'token-count',
header: 'Tokens', header: 'Tokens',
label: 'token-count', label: 'token-count',
description: 'Total tokens used in the session', description: 'Total tokens used in the session',
defaultEnabled: false,
}, },
] as const; ] as const;
@@ -86,7 +76,6 @@ export interface FooterItem {
header: string; header: string;
label: string; label: string;
description: string; description: string;
defaultEnabled: boolean;
} }
export const DEFAULT_ORDER = [ export const DEFAULT_ORDER = [
@@ -4,7 +4,7 @@
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
import { describe, it, expect } from 'vitest'; import { describe, it, expect, vi, afterEach } from 'vitest';
import { renderWithProviders } from '../../test-utils/render.js'; import { renderWithProviders } from '../../test-utils/render.js';
import { Footer } from './Footer.js'; import { Footer } from './Footer.js';
import { createMockSettings } from '../../test-utils/settings.js'; import { createMockSettings } from '../../test-utils/settings.js';
@@ -210,6 +210,10 @@ describe('<Footer />', () => {
}); });
describe('sandbox and trust info', () => { describe('sandbox and trust info', () => {
afterEach(() => {
vi.unstubAllEnvs();
});
it('should display untrusted when isTrustedFolder is false', () => { it('should display untrusted when isTrustedFolder is false', () => {
const { lastFrame } = renderWithProviders(<Footer />, { const { lastFrame } = renderWithProviders(<Footer />, {
width: 120, width: 120,
@@ -540,13 +544,7 @@ describe('<Footer />', () => {
}, },
ui: { ui: {
footer: { footer: {
items: [ items: ['cwd', 'git-branch', 'sandbox-status', 'model-name'],
'vim-mode',
'cwd',
'git-branch',
'sandbox-status',
'model-name',
],
}, },
}, },
}), }),