fix: eliminate non-null assertions, fix broken test, add error-path coverage

This commit is contained in:
2026-03-01 13:07:50 +01:00
parent 0618c7c532
commit 089ed70a62
3 changed files with 86 additions and 22 deletions

View File

@@ -9,7 +9,6 @@ import { describe, it, expect, beforeEach, vi, afterEach } from 'vitest';
// Track mock state
let safeStorageAvailable = true;
const encryptedBuffers = new Map<string, Buffer>();
// Mock Electron's safeStorage
vi.mock('electron', () => ({