auto-claude: subtask-2-1 - Create tests for cache.ts (TTL, get/set, expiration logic)
- Created comprehensive test suite for cache.ts covering: - set() and get() operations with various data types - TTL expiration logic (default, custom, and edge cases) - has() method for checking key existence - delete() method for removing individual keys - clear() method for removing all keys - Expiration boundary testing - Different TTL values for different items - TTL reset when items are overwritten - Fixed vitest.config.ts to include src/utils/** tests - Fixed tsconfig.json to include src/utils/** files - Used vi.useFakeTimers() for deterministic time-based testing - All tests properly isolated with beforeEach/afterEach hooks Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"active": true,
|
||||
"spec": "030-add-unit-tests-vitest-configured-but-no-tests-exis",
|
||||
"state": "building",
|
||||
"subtasks": {
|
||||
"completed": 2,
|
||||
"total": 8,
|
||||
"in_progress": 1,
|
||||
"failed": 0
|
||||
},
|
||||
"phase": {
|
||||
"current": "Utility Functions Tests",
|
||||
"id": null,
|
||||
"total": 2
|
||||
},
|
||||
"workers": {
|
||||
"active": 0,
|
||||
"max": 1
|
||||
},
|
||||
"session": {
|
||||
"number": 4,
|
||||
"started_at": "2026-01-25T06:18:19.433683"
|
||||
},
|
||||
"last_update": "2026-01-25T06:32:23.146357"
|
||||
}
|
||||
Reference in New Issue
Block a user