Test that your error handling works correctly. Trigger errors intentionally and verify the response.
// Test that validation throws
expect(() => setAge(-1)).toThrow(RangeError);
// Test error message
expect(() => setAge("old")).toThrow(
"Age must be a number"
);
Error paths need testing just like success paths.