Solutionunvalidated
Mock `useAppDispatch` to return a `vi.fn()` dispatch function, then assert that the mock dispatch was called with the expected action (e.g., `resetStates()`).
66d52aad-4671-49f8-b59e-c8f56d15ed03
Mock useAppDispatch to return a vi.fn() dispatch function, then assert that the mock dispatch was called with the expected action (e.g., resetStates()).