It is a common misconception from users that the default matcher for map is embeds. We already had another issue that improved the documentation, but this problem continues to happen very often.
In my team, we are creating several replicated functions to do deep-equals (following this README section) to validate nested maps.
This discussion already started in a message in the #matcher-combinator slack channel.
Proposed Solution
Create the deep-equals function in the matcher-combinators.matchers namespace with a proper docstring trying to bring this explanation closer to the code.
Context
It is a common misconception from users that the default matcher for
map
isembeds
. We already had another issue that improved the documentation, but this problem continues to happen very often.In my team, we are creating several replicated functions to do
deep-equals
(following this README section) to validate nestedmap
s.This discussion already started in a message in the #matcher-combinator slack channel.
Proposed Solution
Create the
deep-equals
function in thematcher-combinators.matchers
namespace with a proper docstring trying to bring this explanation closer to the code.