Skip to content

Jest snapshot fails every test run #216

@crobinson42

Description

@crobinson42

The default date props is different on every test run which causes the Jest snapshots to fail - any recommendation on how to handle this scenario?

First glance solution feels hacky: <DateTimePicker date={env.__TEST__ ? new Date(testDate) : undefined} />

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