First I am aware that variants are experimental. 😅
When using variants it seems I can't use snapshot_accept(). Example https://github.com/maelle/clii where I changed the code after recording a snapshot. When I run the tests again I get
Snapshot of code has changed:
old | new
[4] "Message <message>" | "Message <message>" [4]
[5] " thing" | " thing" [5]
[6] "Message <cliMessage>" | "Message <cliMessage>" [6]
[7] " -- bla --" - " -- blaaa --" [7]
[8] "Message <message>" | "Message <message>" [8]
[9] " another thing" | " another thing" [9]
Run `snapshot_accept('bla')` if this is a deliberate change
But if I run snapshot_accept('bla') I get the message "No snapshots to update".
First I am aware that variants are experimental. 😅
When using variants it seems I can't use
snapshot_accept(). Example https://github.com/maelle/clii where I changed the code after recording a snapshot. When I run the tests again I getBut if I run
snapshot_accept('bla')I get the message "No snapshots to update".