rrule icon indicating copy to clipboard operation
rrule copied to clipboard

fix: Support Jest mocked dates

Open vbudovski opened this issue 2 years ago • 1 comments

Jest provides two different implementations of fake timers - legacy and modern. The legacy implementation works with RRule, while the modern one does not, as it uses a strict instance check. Compare the toString result of the object if the value is not a Date instance.


Thanks for contributing to rrule!

To submit a pull request, please verify that you have done the following:

  • [x] Merged in or rebased on the latest master commit
  • [x] Linked to an existing bug or issue describing the bug or feature you're addressing
  • [ ] Written one or more tests showing that your change works as advertised

vbudovski avatar Jun 25 '22 01:06 vbudovski

Please resolve the conflicts and I'll merge

davidgoli avatar Feb 10 '23 18:02 davidgoli