refactor(04-01): move API list test stubs into tests/ mirror dir to match convention

The two Wave-0 RED stubs (lists.test.ts, listEmitter.test.ts) were co-located in
src/ but all existing API tests live in apps/api/tests/. Move them to tests/routes/
and tests/lib/, add explicit vitest imports to match the tests/ convention, and
update path references in downstream plans 04-02..04-06. PWA tests keep co-location
(that IS the PWA convention).
This commit is contained in:
Lucas Berger
2026-06-09 12:10:31 -04:00
parent 0fd4d66ee7
commit 60745b3281
11 changed files with 43 additions and 39 deletions
@@ -38,8 +38,8 @@ key_files:
- apps/pwa/src/store/listsStore.ts
- apps/pwa/src/api/listsClient.ts (fetchLists + List/ListItem types)
- apps/api/test/setup.ts
- apps/api/src/routes/lists.test.ts
- apps/api/src/lib/listEmitter.test.ts
- apps/api/tests/routes/lists.test.ts
- apps/api/tests/lib/listEmitter.test.ts
- apps/pwa/src/hooks/useListSSE.test.ts
- apps/pwa/src/routes/ListDetail.test.tsx
- apps/api/src/db/migrations/0002_lists_schema.sql