Solutionunvalidated

Defer ALL database imports into the script's `main()` function. — Test file imports only the pure helpers — no DATABASE_URL needed, no mocks. Tension: dynamic `await import()` is slightly slower on first DB call. Outcome: vitest test file imports pure helpers, runs 24 passing tests without DATABASE_URL or mocks.

b21bb648-2fb3-4ca8-bee2-53a13b895f4a

Defer ALL database imports into the script's main() function. — Test file imports only the pure helpers — no DATABASE_URL needed, no mocks. Tension: dynamic await import() is slightly slower on first DB call. Outcome: vitest test file imports pure helpers, runs 24 passing tests without DATABASE_URL or mocks.