Registry / testing / bradleyjkemp-cupaloy

bradleyjkemp-cupaloy

JSON →
library2.3.0+incompatiblegogounverified

Simple snapshot testing library for Go that automatically manages snapshot files.

go get github.com/bradleyjkemp/cupaloy
INSTALL
IMPORT
SIG · BRADLEYJKEMP-CUPAL
B
bradleyjkemp-cupaloy
testinggov2.3.0+incompatible
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

cupaloy
github.com/bradleyjkemp/cupaloy

Snapshot test a value in a test function.

package main import ( "testing" "github.com/bradleyjkemp/cupaloy" ) func TestSomething(t *testing.T) { cupaloy.SnapshotT(t, 42) }
Debug
Known issues
gotchaSnapshot files are created automatically; ensure they are committed to version control.
fix
Add snapshot files to your repository and update them with UPDATE_SNAPSHOTS=true.
affects: all
Upgrade
Version history
2.3.0+incompatiblelatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
15 hits · last 30 days
node
12
Amazon
1
OpenAI (training)
1
Resources
bradleyjkemp-cupaloy — go get bradleyjkemp-cupaloy · libregistry