gkampitakis / go-snaps

Jest-like snapshot testing in Go 📸
https://pkg.go.dev/github.com/gkampitakis/go-snaps
MIT License
174 stars 6 forks source link

feat: support matchStandaloneSnapshot #102

Closed gkampitakis closed 3 months ago

gkampitakis commented 4 months ago

Closes #100

[!NOTE] The new method can show false positives for obsolete files when using snaps.Skip* or -run. Also similarly to other methods if the file is the last in a directory and it's obsolete go-snaps won't mark it as obsolete as it can't discover it.

jeremyhcho commented 3 months ago

Hi @gkampitakis!

Thanks for putting this together. I was in the midst of looking for a way to save snapshot files with a .json extension and found your PR :)

Do you have a timeline around releasing this change?

Thanks again!

gkampitakis commented 3 months ago

Hi @gkampitakis!

Thanks for putting this together. I was in the midst of looking for a way to save snapshot files with a .json extension and found your PR :)

Do you have a timeline around releasing this change?

Thanks again!

Hey @jeremyhcho, thanks for your interest. I have been quite busy this week, but hopefully I will make progress and manage to merge it this weekend if I don't encounter any issue as this pr is mostly done 😄 . If you want to test it and provide any feedback you are welcome to try it with

go get github.com/gkampitakis/go-snaps@matchStandaloneSnapshot