import { readFileSync } from "node:fs"; import path from "node:path"; import { fileURLToPath } from "node:url"; import { describe, expect, it } from "vitest"; const source = readFileSync(path.join(path.dirname(fileURLToPath(import.meta.url)), "handlers.ts"), "utf8"); describe("billing activity summary i18n contract", () => { it("persists a semantic summary key when dunning freezes a tenant", () => { expect(source).toContain('summaryText: "activity.runtime.billing.statusChanged"'); expect(source).not.toContain('summaryText: "Billing-Status auf frozen gesetzt"'); }); });