Skip to content

Does anyone use unseen? #659

Description

@max-sixty

Unseen — Accept all new (previously unseen) — allows automatically accepting snapshots which don't yet exist. I can't see it being that helpful — generally I either want to review any snapshots, or I'm running with --accept and will review in git.

There's some logic from ages ago that looks wrong,

insta/insta/src/runtime.rs

Lines 520 to 525 in ce2b3fd

// TODO: this seems to be making `unseen` be true when there is an
// existing snapshot file; which seems wrong??
let unseen = self
.snapshot_file
.as_ref()
.map_or(false, |x| fs::metadata(x).is_ok());
, and rather than fix & test it, I might propose deprecating it. To the extent it is indeed wrong, even less likely that people are using the option.

That said, very possibly others find this useful?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions