callumalpass_tasknotes/tests
callumalpass fbc72c4988 fix: mock system date in issue #810 tests to prevent false failures
The test was failing because getTodayString() uses the real system date,
while the test was checking against a fixed test date (Oct 6, 2025).
When run on any date after Oct 6, 2025, tasks due on Oct 6 would appear
overdue, causing the test to fail incorrectly.

Solution: Use jest.useFakeTimers() and jest.setSystemTime() to mock the
system date to Oct 6, 2025 during these tests, ensuring consistent
behavior regardless of when the tests are run.

All 3 tests now pass correctly.
2025-10-07 21:04:50 +11:00
..
__mocks__ fix: ICS calendar timezone conversion for non-IANA timezones (#781, #841) 2025-10-06 22:26:15 +11:00
components test: add comprehensive test coverage for hierarchical subgroup functionality 2025-09-18 10:15:08 +00:00
helpers fix: recurring tasks with overdue due dates disappearing from agenda (#810) 2025-10-06 21:15:19 +11:00
integration fix: automatically sanitize forbidden characters in task titles 2025-09-08 01:15:26 +10:00
manual fix: all-day ICS events displaying on wrong day and appearing twice (#854, #695) 2025-10-07 07:20:48 +11:00
services test: add comprehensive test coverage for hierarchical subgroup functionality 2025-09-18 10:15:08 +00:00
types test: add comprehensive test coverage for hierarchical subgroup functionality 2025-09-18 10:15:08 +00:00
unit fix: mock system date in issue #810 tests to prevent false failures 2025-10-07 21:04:50 +11:00
utils test: add tests for non-string values in frontmatter tags 2025-09-30 18:02:59 +10:00
coverage-report.md test: add comprehensive tests for Issue #160 off-by-one date bugs 2025-07-11 23:06:37 +10:00
test-setup.ts feat: add saved views button position setting 2025-08-15 22:50:30 +10:00