test: fix test environments failing due to missing IS_DEV_ENVIRONMENT mock export

This commit is contained in:
Gemini Nexus Bot committed 2026-05-02 01:18:12 -03:00
1 parent 9b9b977ae6
commit 269ad18ed6
10 files changed
+20 -10

No files matched your search

+2 -1
View File
@@ -16,7 +16,8 @@ import { getSwitchGuardSnapshot } from '../../ipc/switchGuard';
vi.mock('../../utils/paths', async () => {
const path = await import('path');
const agentDir = path.join(process.cwd(), 'temp_test_agent');
return {
return {
IS_DEV_ENVIRONMENT: false,
getAgentDir: vi.fn(() => agentDir),
getAccountsFilePath: vi.fn(() => path.join(agentDir, 'accounts.json')),
getBackupsDir: vi.fn(() => path.join(agentDir, 'backups')),