React·Beginner·Conceptual·1 min read
How do you test a reducer?
Short interview answer
Provide representative states and actions, assert exact next states and immutability, and cover invalid or repeated transitions without rendering a component.
Key takeaway
Explain the underlying mental model clearly, then support it with a concrete example and its trade-offs.