You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes there is a need to check complex objects in checking calls to the function. This is often due to the definition of some large mock object that would satisfy the condition. But this makes the test code less readable.
I suggest adding an asymmetric matcher expect.matchSnapshot(name) to solve this problem.
For a detailed description of the desired API, see the Examples section.
Motivation
This proposal will simplify the code of tests by making checks in snapshots.
🚀 Feature Proposal
Sometimes there is a need to check complex objects in checking calls to the function. This is often due to the definition of some large mock object that would satisfy the condition. But this makes the test code less readable.
I suggest adding an asymmetric matcher
expect.matchSnapshot(name)
to solve this problem.For a detailed description of the desired API, see the Examples section.
Motivation
This proposal will simplify the code of tests by making checks in snapshots.
Example
Pitch
The text was updated successfully, but these errors were encountered: