Commit f35c22a
test(webapp): isolate mollifierDrainerWorker test from runEngine singleton
Importing the production drainer wiring transitively loads
\`~/v3/runEngine.server\`, whose top-level \`singleton(...)\` eagerly
constructs a RunEngine. The constructor spins up Prisma + Redis
workers that try to connect to localhost — in CI (no PG, no Redis)
that produces an unhandled \`PrismaClientInitializationError\` which
fails the run even though every assertion passes. Mock the runEngine
and prisma modules so the unit test exercises only the bootstrap's
error classification, not a live engine.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 062bcfa commit f35c22a
1 file changed
Lines changed: 14 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
2 | 15 | | |
3 | 16 | | |
4 | 17 | | |
| |||
0 commit comments