What problem does it solve? Lightning Web Component tests fail for subtle reasons: unflushed rerender microtasks, wire adapters that never provision, Apex mocks missing the virtual flag, and leaked jsdom state between tests. This Skill provides the exact patterns, mocks, and troubleshooting workflow to write LWC Jest tests that assert real behavior and pass the coverage gate. ## Core Features & Use Cases - Complete test patterns: Covers createElement/appendChild anatomy, DOM cleanup, async rerender flushing, shadow and light DOM querying, CustomEvent assertions, and fake timers. - Mocking cookbook: Provides ready-to-use mocks for imperative and wired Apex, lightning/uiRecordApi, navigation, messageService, toasts, labels, and base components using createApexTestWireAdapter and createLdsTestWireAdapter. - Gate integration and debugging: Aligns Jest coverage thresholds with the vf-check jest gate and supplies a symptom-to-cause troubleshooting table for failing suites. - Use Case: A developer adds a tests directory for a new accountCard component, uses the wire-driven recipe to emit getRecord fixture data, asserts the error branch, and verifies coverage passes the 80 percent gate before handoff. ## Quick Start Ask the assistant to write a Jest test for a Lightning Web Component that wires an Apex method, including success and error path assertions.