bynk.test.snapshot_duplicate_name
Error A case takes two snapshots (expect v matches snapshot "name") under one name; a snapshot is keyed by its case and name.
A snapshot is stored under its case and its name, so each matches snapshot in one case needs a name of its own. Two with the same name would compare against, and update, the same stored value. Give the repeat a distinct name.
Example
expect read("a") matches snapshot "delivery"expect read("b") matches snapshot "delivery" // ✗ name already takenexpect read("b") matches snapshot "second" // ✓In the Book
See also
- The grammar rule it governs:
snapshot_expr. - Every code in its category, Tests, on the diagnostic index.
bynk explain bynk.test.snapshot_duplicate_nameshows the same from the installed toolchain, without a network.