Files
ag-x/dist/__mocks__/electron-updater.js
admin 43e2a2f78f AG X v2.0.3 - Antigravity fork with multi-provider support
Features:
- Welcome screen on first run (provider choice before LS starts)
- 15+ AI providers (Google Gemini, OpenAI, Anthropic, DeepSeek, Ollama, etc.)
- Provider config syncs to endpoints.json for translation proxy
- Built-in Node.js translation proxy for non-native backends
- Auto-update support, tray integration, URI scheme handler
2026-05-22 23:20:10 +04:00

26 lines
896 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.autoUpdater = exports.autoUpdaterEvents = void 0;
/**
* Shared electron-updater mock for all test files.
*
* This file is automatically used by Vitest when a test calls
* `vi.mock('electron-updater')` without a factory argument.
*
* The `autoUpdaterEvents` export allows tests to trigger event callbacks
* that were registered via `autoUpdater.on(event, callback)`.
*/
const vitest_1 = require("vitest");
exports.autoUpdaterEvents = {};
exports.autoUpdater = {
autoDownload: false,
autoInstallOnAppQuit: false,
forceDevUpdateConfig: false,
updateConfigPath: '',
on: vitest_1.vi.fn().mockImplementation((event, cb) => {
exports.autoUpdaterEvents[event] = cb;
}),
checkForUpdates: vitest_1.vi.fn().mockResolvedValue(undefined),
quitAndInstall: vitest_1.vi.fn(),
};