-
Notifications
You must be signed in to change notification settings - Fork 398
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jest snapshot fails every test run #216
Comments
Hi @crobinson42 ouch, you're right, it does feel hacky but I'm not aware of other workarounds without making breaking changes (other than creating weird props like Do you have any ideas? |
My solution, for now, is to over-ride the
|
Gotcha, thanks for answering. If you find any other workarounds feel free to add them here (I'm adding this issue to the README.md). |
Hi @mmazzarolo, How do I deactivate weekends in the datepicker? I appreciate that you can help me |
Adding |
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} />
The text was updated successfully, but these errors were encountered: