--- title: Wrap Async Setup Components in Suspense for Testing impact: HIGH impactDescription: Components with async setup() fail to render in tests without Suspense wrapper, causing cryptic errors type: gotcha tags: [vue3, testing, suspense, async-setup, vue-test-utils, vitest] --- # Wrap Async Setup Components in Suspense for Testing **Impact: HIGH** - Components using `async setup()` require a `` wrapper to function correctly. Testing them without Suspense causes the component to never render, leading to test failures and confusing errors. Create a test wrapper component with Suspense or use a `mountSuspense` helper function for testing async components. ## Task Checklist - [ ] Identify components with async setup (uses `await` in `