fix(HAI-018): complete Step 1 — fix server-side error handling in GET /tasks/:id

- Route now returns 404 only for ENOENT, 500 for transient errors
- store.getTask() retries once after 50ms on non-ENOENT failures
- Added route tests for success, 404, and 500 cases
- Updated vitest config to include src/**/*.test.* files
This commit is contained in:
Dustin Byrne
2026-03-25 21:30:18 -04:00
parent 60be31927f
commit d452aeb0c1
5 changed files with 132 additions and 5 deletions

2
pnpm-lock.yaml generated
View File

@@ -115,7 +115,7 @@ importers:
version: 5.9.3
vitest:
specifier: ^4.1.1
version: 4.1.1(@types/node@25.5.0)(vite@6.4.1(@types/node@25.5.0)(tsx@4.21.0)(yaml@2.8.3))
version: 4.1.1(@types/node@25.5.0)(jsdom@29.0.1)(vite@6.4.1(@types/node@25.5.0)(tsx@4.21.0)(yaml@2.8.3))
packages: