Skip to content

Easier usage with floats #913

Open
Open
@shughes-uk

Description

@shughes-uk

**Is your feature request related to a problem? Please describe **

We can't use syrupy when we are snapshotting objects with floats in them, due to precision issues.

Describe the solution you'd like

A way to set up a level of precision to match floats, ideally globally for all tests via a config option.

Describe alternatives you've considered

Using custom matchers on an individual attribute basis but thats a giant pain.

Additional context

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions