Imagine a fusion of ‘Eskom se Push’ and ‘X’. The Republic allows users to raise concerns and spread awareness about government services through incident reports, with cool data visualizations providing a dynamic overview of public sentiment on service delivery.
[ ] components/IssueInputBox/IssueInputBox.tsx
Current Coverage: 70.84%
Target Lines: 93-124, 128-156, 160-162, 166-169, 202-204, 230-246.
Action: Add unit tests for these lines, focusing on different input scenarios, edge cases, and rendering conditions.
[ ] components/LocationAutocomplete/LocationAutocomplete.tsx
Current Coverage: 64.49%
Target Lines: 38-80, 86-96, 116-118, 121-122.
Action: Add tests for autocomplete functionality, ensuring different locations and edge cases are covered.
[ ] components/Reaction/Reaction.tsx
Current Coverage: 70.23%
Target Lines: 18-19, 33-76, 87.
Action: Test different reaction states and edge cases to ensure all branches and functions are covered.
[ ] components/Visualisations/DotVisualizations.tsx
Current Coverage: 24.73%
Target Lines: 46-262, 272-277.
Action: Add tests for visualizations to cover various data inputs and rendering scenarios.
[ ] lib/utils.ts
Current Coverage: 35.41%
Target Lines: 34-35, 40-56, 59-68, 71-85, 117-132, 135-159, 162-196.
Action: Test utility functions with various inputs, ensuring edge cases and error handling are included.
Improving Test Coverage for Components Below 80%
[ ] components/IssueInputBox/IssueInputBox.tsx Current Coverage: 70.84% Target Lines: 93-124, 128-156, 160-162, 166-169, 202-204, 230-246. Action: Add unit tests for these lines, focusing on different input scenarios, edge cases, and rendering conditions.
[ ] components/LocationAutocomplete/LocationAutocomplete.tsx Current Coverage: 64.49% Target Lines: 38-80, 86-96, 116-118, 121-122. Action: Add tests for autocomplete functionality, ensuring different locations and edge cases are covered.
[ ] components/Reaction/Reaction.tsx Current Coverage: 70.23% Target Lines: 18-19, 33-76, 87. Action: Test different reaction states and edge cases to ensure all branches and functions are covered.
[ ] components/Visualisations/DotVisualizations.tsx Current Coverage: 24.73% Target Lines: 46-262, 272-277. Action: Add tests for visualizations to cover various data inputs and rendering scenarios.
[ ] lib/utils.ts Current Coverage: 35.41% Target Lines: 34-35, 40-56, 59-68, 71-85, 117-132, 135-159, 162-196. Action: Test utility functions with various inputs, ensuring edge cases and error handling are included.