test(ci): isolate Electron secure storage coverage
Windows CI / verify (push) Failing after 3m41s

Mock Electron in the Node-only secure-storage unit test so its expected unavailable-path assertion never triggers Electron's binary bootstrap. Bump the patch release contracts to 1.0.11 after the 1.0.10 tag CI failure.
This commit is contained in:
Sucukdeluxe
2026-08-12 21:40:39 +02:00
parent aa28a0b870
commit 275d252f25
8 changed files with 27 additions and 15 deletions
+1 -1
View File
@@ -940,7 +940,7 @@
<div class="settings-card" data-settings-pane="updates" hidden>
<h3 id="updateTitle">Updates</h3>
<p id="versionInfo" class="card-intro">Version: v1.0.10</p>
<p id="versionInfo" class="card-intro">Version: v1.0.11</p>
<button type="button" class="btn-secondary" id="checkUpdateBtn" onclick="checkUpdate()">Nach Updates suchen</button>
</div>
+3 -1
View File
@@ -1,6 +1,8 @@
import { test, expect, describe } from 'vitest';
import { test, expect, describe, vi } from 'vitest';
import { MemorySecureStorage, createElectronSecureStorage, type SecureStorage } from './secure-storage';
vi.mock('electron', () => ({}));
describe('MemorySecureStorage', () => {
test('isEncryptionAvailable returns false (kennzeichnet Memory-Mode)', () => {
const s: SecureStorage = new MemorySecureStorage();