Skip to content

Snapshot management in the presence of a variant #1508

Description

@maelle

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".

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions