diff --git a/apps/web-next/src/server/bind-production.test.ts b/apps/web-next/src/server/bind-production.test.ts index 4c5b52c..2b153a9 100644 --- a/apps/web-next/src/server/bind-production.test.ts +++ b/apps/web-next/src/server/bind-production.test.ts @@ -69,12 +69,13 @@ describe("bindAllProduction", () => { expect(bindProductionMedia).toHaveBeenCalledOnce(); }); - it("is idempotent — second call does not re-bind", async () => { - const { bindAllProduction } = await import("./bind-production"); + it("is idempotent via bindAll — second call does not re-bind", async () => { + vi.stubEnv("NODE_ENV", "production"); + const { bindAll } = await import("./bind-production"); const { bindProductionBlog } = await import("@repo/blog/di/bind-production"); - await bindAllProduction(); - await bindAllProduction(); + await bindAll(); + await bindAll(); expect(bindProductionBlog).toHaveBeenCalledOnce(); });