Files
triggerdotdev--trigger.dev/apps
Dan Sutton 76f349420b fix(webapp): inject runStore into UpdateMetadataService
The service statically imported the db.server-backed runStore singleton,
which dragged the Prisma client into otherwise-light test module graphs and
opened an eager connection to DATABASE_URL on import. The metadata service
test then threw an unhandled connection error whenever no database was
reachable at the configured address.

Make runStore a required constructor option, pass the singleton at the
production construction site, and inject a testcontainer-backed store in the
tests.
2026-06-18 11:47:46 +01:00
..