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
24 lines
941 B
JavaScript
24 lines
941 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.DEFAULT_WINDOW_URL = void 0;
|
|
exports.silenceConsole = silenceConsole;
|
|
/**
|
|
* Shared test helpers and utilities.
|
|
*
|
|
* For module mocks (electron, electron-updater), use the auto-mock files
|
|
* in `src/__mocks__/` instead. This file is for runtime helpers that
|
|
* are called in beforeEach/afterEach blocks.
|
|
*/
|
|
const vitest_1 = require("vitest");
|
|
const constants_1 = require("../constants");
|
|
exports.DEFAULT_WINDOW_URL = `${constants_1.WINDOW_ORIGIN}:${constants_1.DYNAMIC_PORT}/`;
|
|
/**
|
|
* Silence console output during tests. Call in `beforeEach`.
|
|
* Restoring is handled by `vi.restoreAllMocks()` in `afterEach`.
|
|
*/
|
|
function silenceConsole() {
|
|
vitest_1.vi.spyOn(console, 'log').mockImplementation(() => { });
|
|
vitest_1.vi.spyOn(console, 'warn').mockImplementation(() => { });
|
|
vitest_1.vi.spyOn(console, 'error').mockImplementation(() => { });
|
|
}
|