feat: Add unit tests for validation storage functionality

- Introduced comprehensive unit tests for the validation storage module, covering functions such as writeValidation, readValidation, getAllValidations, deleteValidation, and others.
- Implemented tests to ensure correct behavior for validation creation, retrieval, deletion, and freshness checks.
- Enhanced test coverage for edge cases, including handling of non-existent validations and directory structure validation.
This commit is contained in:
Kacper
2025-12-23 23:17:41 +01:00
parent 65319f93b4
commit ef8eaa0463
3 changed files with 357 additions and 59 deletions

View File

@@ -223,7 +223,7 @@ export function GitHubIssuesView() {
const unsubscribe = api.github.onValidationEvent(handleValidationEvent);
return () => unsubscribe();
}, [currentProject?.path, selectedIssue, showValidationDialog, validationModel, muteDoneSound]);
}, [currentProject?.path, selectedIssue, showValidationDialog, muteDoneSound]);
// Cleanup audio element on unmount to prevent memory leaks
useEffect(() => {
@@ -803,7 +803,7 @@ function IssueRow({
return (
<div
className={cn(
'flex items-start gap-3 p-3 cursor-pointer hover:bg-accent/50 transition-colors',
'group flex items-start gap-3 p-3 cursor-pointer hover:bg-accent/50 transition-colors',
isSelected && 'bg-accent'
)}
onClick={onClick}