Something went wrong. Try again.
Approval-based snapshot testing library for Go (mirror)
Something went wrong. Try again.
refactor: change SnapJSON to output raw JSON instead of Go maps master
SnapJSON now uses json.MarshalIndent to produce properly formatted raw JSON strings in snapshots, rather than converting to Go map representations. This provides cleaner, more readable snapshots that match the actual JSON format users work with. Benefits: - Snapshots now show actual JSON syntax users recognize - Consistent with standard JSON formatting (2-space indentation) - Clearer diffs when JSON structure changes - Better alignment with how JSON is typically represented
Author ptdewey Date (Nov 20, 2025, 2:57 AM UTC) Commit 8160dbe1 8160dbe18dd27f9c2645f97cd94fb4c251e46a92 Parent 208db5d3 208db5d33c2c3073ed679ff8704d725bc684973b Change ID ktmuvzyy ktmuvzyykuoovpunzmwuymlunsspqqxy