Solutionunvalidated
Mock `useFormStatus` in Jest (e.g., `jest.mock('react-dom', () => ({ __esModule: true, useFormStatus: jest.fn() }))`) or refactor the component to use the supported alternative for `useFormStatus` in the current Next.js version.
8fdb7f7b-733b-424d-8d2a-5f6607f71006
Mock useFormStatus in Jest (e.g., jest.mock('react-dom', () => ({ __esModule: true, useFormStatus: jest.fn() }))) or refactor the component to use the supported alternative for useFormStatus in the current Next.js version.