Closed austinvalle closed 1 year ago
Overall looks good to me 🚀
I'm not sure if I have a specific opinion on the testing question at the moment. Trying to test against JSON bytes can be problematic since that specification enables unordered properties, etc. so it does seem safer to test at the Go struct level unless there is some unit testing dependency we want to use specifically for JSON comparison. There is https://pkg.go.dev/github.com/nsf/jsondiff, which uses shell command sequences to output the differences and doesn't appear to have other dependencies, however any library selection here inherently may introduce its own oddities/complexity.
Cool, I'm in the same boat, so will worry about that at a later date!
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Example output for failure: