-
-
Notifications
You must be signed in to change notification settings - Fork 17
Closed
Description
I'm using inline-snapshots
on all projects I'm working on (I just added it to pydantic-core, pydantic/pydantic-core#1512).
As I use it more and more, there are 3 related things that I find a bit annoying:
- The CLI arguments like
--inline-snapshot=fix
and--inline-snapshot=create
are quite verbose to write out when I want to enable them, could we add--snap-fix
etc? --inline-snapshot=create
isn't on by default and--inline-snapshot=fix
doesn't imply--inline-snapshot=create
- could you add a config setting or env var to have--inline-snapshot=create
on by default? and/or could--inline-snapshot=fix
imply--inline-snapshot=create
?- When I enable
--inline-snapshot=fix
or--inline-snapshot=create
I get loads of diffs from tests that are passing but where snapshot values are formatted differently toinline-snapshot
s default formatting. I've seen this confuse some of our team a lot, as they thought these tests were failing, I think the diff should be hidden for tests that are passing by default.
Sorry if these should be three separate issues, I thought there were related enough to put together. Happy to split if you'd prefer.
Metadata
Metadata
Assignees
Labels
No labels