snapshot_checker

command
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 5, 2024 License: Apache-2.0 Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Snapshot checker

Run test tests from /test/ package, checks that JSON output from test is correct, show diff if not, and give an ability to update expected JSON.

Usage

  1. Run go run ./internal/cmd/snapshot_checker
  2. Command will run all test in /testdata directory
  3. It will search for a first failed snapshot test and print out difference between current and expected JSON.
  4. Press 'y + return' if expected JSON should be patched, or 'n + return' if no.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL