A golden file testing (snapshot testing) library for gomega.
go get github.com/pyroscope-io/goldga
import (
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/tommy351/goldga"
)
Describe("Example", func() {
It("works", func() {
Expect("foobar").To(goldga.Match())
})
})
See examples folder for more examples.