What problem does it solve? Writing and running Vitest tests in this Electron repo hits recurring, confusing failures: vi.mock hoisting errors, native-module ABI mismatches after pnpm dev, SQLite foreign-key fixture errors, and pre-existing renderer test failures that look like regressions. This Skill maps each symptom to its root cause and fix. ## Core Features & Use Cases - Mocking and lint fixes: Resolve vi.mock hoisting ReferenceErrors with vi.hoisted, clear EventEmitter listeners correctly, and satisfy noUncheckedIndexedAccess plus no-non-null-assertion with destructure patterns. - Native module and fixture triage: Fix better-sqlite3/keytar ABI mismatches between Electron and Node, EPERM file-lock rebuild failures on Windows, and FOREIGN KEY constraint errors by seeding parent goal and task rows. - Use Case: After a pnpm dev session, roughly 132 tests suddenly fail at new Database(':memory:'). The Skill identifies the Electron-vs-Node ABI mismatch and directs you to run root pnpm test, which rebuilds the native modules first. ## Quick Start Ask the AI to diagnose why your Vitest run is failing in this repo and apply the matching fix from the symptom table.