Skip to content

test: comprehensive unit tests for export-timeline#142

Open
TerminalGravity wants to merge 5 commits intomainfrom
test/export-timeline-coverage
Open

test: comprehensive unit tests for export-timeline#142
TerminalGravity wants to merge 5 commits intomainfrom
test/export-timeline-coverage

Conversation

@TerminalGravity
Copy link
Collaborator

Adds 20 unit tests for the export-timeline tool's pure functions (computeStats, generateMarkdownReport, parseRelativeDate). Previously only had 1 smoke test checking the export existed.

Exports three internal functions for direct testing — no behavioral changes.

Export computeStats, generateMarkdownReport, and parseRelativeDate
for direct testing. Add 20 tests covering:
- parseRelativeDate with days/weeks/months/singular/passthrough
- computeStats aggregation, empty input, missing timestamps
- generateMarkdownReport sections, formatting, conditional rendering
@TerminalGravity
Copy link
Collaborator Author

Export-timeline tests look comprehensive. Good edge case coverage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant