- 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>
25 lines
478 B
Plaintext
25 lines
478 B
Plaintext
{
|
|
"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"
|
|
} |