Test: Add comprehensive test coverage for Reports components#223
Merged
its-me-abhishek merged 2 commits intoCCExtractor:mainfrom Nov 26, 2025
Merged
Test: Add comprehensive test coverage for Reports components#223its-me-abhishek merged 2 commits intoCCExtractor:mainfrom
its-me-abhishek merged 2 commits intoCCExtractor:mainfrom
Conversation
- Add ReportsView.test.tsx with 18 tests covering data calculation, date filtering, and edge cases - Add ReportChart.test.tsx with 18 tests for rendering, chart elements, and export functionality - Add report-download-utils.test.ts with 11 tests for CSV/PNG export utilities - Achieve 100% coverage on ReportsView, ReportChart, and report-download-utils - Improve tasks-utils coverage from 39.56% to 94.5% - Increase overall Tasks directory coverage from 41.85% to 61.05% - All 214 tests passing with no regressions
Remove duplicate 're-enables button after export completes' test case
ShivaGupta-14
pushed a commit
to ShivaGupta-14/ccsync
that referenced
this pull request
Dec 25, 2025
…ctor#223) * test: add comprehensive test coverage for Reports components - Add ReportsView.test.tsx with 18 tests covering data calculation, date filtering, and edge cases - Add ReportChart.test.tsx with 18 tests for rendering, chart elements, and export functionality - Add report-download-utils.test.ts with 11 tests for CSV/PNG export utilities - Achieve 100% coverage on ReportsView, ReportChart, and report-download-utils - Improve tasks-utils coverage from 39.56% to 94.5% - Increase overall Tasks directory coverage from 41.85% to 61.05% - All 214 tests passing with no regressions * test: remove duplicate test in ReportChart.test.tsx Remove duplicate 're-enables button after export completes' test case
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Added ReportsView.test.tsx (18 tests)
Added ReportChart.test.tsx (18 tests)
Added report-download-utils.test.ts (11 tests)
Achieved 100% test coverage for ReportsView, ReportChart, and report-download-utils
All 214 tests passing with no regressions
Fixes: Increase Test Coverage for Tasks #193
Checklist
npx prettier --write .(for formatting)gofmt -w .(for Go backend)npm test(for JS/TS testing)Additional Notes