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
This commit is contained in:
25
dist/__mocks__/electron-updater.js
vendored
Normal file
25
dist/__mocks__/electron-updater.js
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
"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(),
|
||||
};
|
||||
Reference in New Issue
Block a user