Production React & TypeScript Unit Test Suite Generator

The Problem

Developers frequently write brittle unit tests that assert on internal component state and class names rather than accessible user interactions, causing tests to break on simple refactors.

The Prompt Structure

Act as a lead QA architect. Write a complete Vitest and React Testing Library test suite in TypeScript for [Component Name]. Query via accessible roles (getByRole), simulate user gestures with userEvent, mock external boundaries, and test async error states.