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
Snapshot tests are often "misused" to create hard-to-understand and brittle tests that are not effective at catching bugs. They can be useful in narrow situations though.
We should write guidance about when and how to effectively use snapshot tests.
The text was updated successfully, but these errors were encountered:
Gudahtt
changed the title
Add guidelines about what snapshot tests should be used for
Add guidelines about when and how to use snapshot tests effectively
Nov 7, 2024
Snapshot tests are often "misused" to create hard-to-understand and brittle tests that are not effective at catching bugs. They can be useful in narrow situations though.
We should write guidance about when and how to effectively use snapshot tests.
There is some mention of snapshot testing here already: https://github.com/MetaMask/contributor-docs/blob/main/docs/testing/unit-testing.md#snapshots
But it doesn't provide enough guidance yet.
References for inspiration:
The text was updated successfully, but these errors were encountered: