fix: broken streaks tests + add 10 e2e CLI tests (84 total) #9

Closed
ti-paul wants to merge 1 commit from fix/streaks-test-dates into main
Member

Fix

  • streaks.test.js dates expirees (mai vs juin) -> utilise daysAgo()

E2E Tests (10 nouveaux)

  • Full CLI flow: init/add/done/list/stats/streaks/log
  • Templates + categories
  • Error handling

84 tests pass

### Fix - streaks.test.js dates expirees (mai vs juin) -> utilise daysAgo() ### E2E Tests (10 nouveaux) - Full CLI flow: init/add/done/list/stats/streaks/log - Templates + categories - Error handling **84 tests pass**
fix: broken streaks tests + add 10 e2e CLI tests (84 total)
Some checks failed
CI / test (pull_request) Failing after 1s
bb2d099620
- Fix streaks.test.js: use relative dates (daysAgo) instead of hardcoded
  May dates that fell outside the 4-week grid window in June
- Fix duplicate variable declaration

- Add 10 e2e CLI tests:
  - Full flow: init -> add -> done -> list -> stats -> streaks -> log
  - Templates and categories listing
  - Error handling: missing args, nonexistent habits, duplicates

All 84 tests pass.
ti-paul closed this pull request 2026-06-12 11:38:50 +00:00
Some checks failed
CI / test (pull_request) Failing after 1s

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
les_clankeurs/git-habit-tracker!9
No description provided.