Closed gkampitakis closed 8 months ago
The api right now looks like
Calling the first time
t.Run("my test", func(t *testing.T) { user := struct{ Name string }{ Name: "george", } snaps.MatchInlineSnapshot(t, user, nil) })
and then it will populate with the snapshot data
t.Run("my test", func(t *testing.T) { user := struct{ Name string }{ Name: "george", } snaps.MatchInlineSnapshot(t, user, snaps.Inline("struct { Name string }{Name:\"george\"}")) })
Still haven't investigated all the edge cases that this can have and I can see being useful but not sure how much is it worth it.
Two issues that are not addressed
The api right now looks like
Calling the first time
and then it will populate with the snapshot data
Still haven't investigated all the edge cases that this can have and I can see being useful but not sure how much is it worth it.
Two issues that are not addressed