You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a way to insert an attribute like data-testid in to the calender element ? it's seems like no way to add this attribute, it's make the callender hard for testing purpose.
Also how to mock the flatpickr modules? anyone has experience about testing flatpickr component ? i tried to mock the date system using jest.useFakeTimers().setSystemTime(new Date('2020-02-19')), but looks like the calender component still render the initial date using current date.
The text was updated successfully, but these errors were encountered:
ishaklumimpah
changed the title
The calender should support for testing and environment
The calender component should support for testing purpose
Jan 6, 2023
There is a way to insert an attribute like
data-testid
in to the calender element ? it's seems like no way to add this attribute, it's make the callender hard for testing purpose.Also how to mock the
flatpickr
modules? anyone has experience about testing flatpickr component ? i tried to mock the date system usingjest.useFakeTimers().setSystemTime(new Date('2020-02-19'))
, but looks like the calender component still render the initial date using current date.The text was updated successfully, but these errors were encountered: