DEV Community

Discussion on: Deterministic unit tests for current date-dependent code in Swift.

Collapse
 
omarjalil profile image
Jalil

I'm having this exact problem but with Calendar.current.isDateInToday(date) or isDateInThisWeek`, how could we achieve the same thing in these use cases?