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
How to ignore parameters when comparing snapshot to serialized object?
My collaborators and I naturally run tests on different machines, therefore, classes / functions that have file path parameters will have different values when taking snapshots. How do I deliberately ignore this parameter (e.g., filename) altogether? I would like one centralized snapshot that can be compared without the comparison of file paths, if possible.
I've tried using snapshot(exclude=props("filename")) (filename is the parameter to ignore) to no avail.
The text was updated successfully, but these errors were encountered:
How to ignore parameters when comparing snapshot to serialized object?
My collaborators and I naturally run tests on different machines, therefore, classes / functions that have file path parameters will have different values when taking snapshots. How do I deliberately ignore this parameter (e.g.,
filename
) altogether? I would like one centralized snapshot that can be compared without the comparison of file paths, if possible.I've tried using
snapshot(exclude=props("filename"))
(filename
is the parameter to ignore) to no avail.The text was updated successfully, but these errors were encountered: