Skip to content

Add an option to include a \n at the end of the .snap #35

@Brunomachadob

Description

@Brunomachadob

Hey!

Maybe we could include a boolean includeNewLineAtEnd into the SnapshotConfig, so anyone who desires can enable it.

As of the default option

  1. true by default, so this would be a breaking change that people would need to override if they don't want to change all files at once (I'm not expecting this shouldn't break the test, but only mark the file as changed to git);
  2. false by default, so this won't break any snapshot already created and people will need to implement the config and override.

What do you think?
Any suggestions?

I'm open to work on this feature.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions