Test Automation
React 19 Testing Guide: useOptimistic, useFormStatus, and use() with Vitest
React 19 shipped a handful of hooks that change how you think about async state, form handling, and data loading. Most of your existing tests still work — but the new hooks introduce async patterns that need deliberate test strategies. This guide covers testing useOptimistic, useFormStatus, and the new use() hook