Refresh HiveGrid Cloud reference snapshot

This commit is contained in:
david committed 2026-08-03 15:31:14 +02:00
1 parent 5e99e14772
commit 7f88026f79
5955 files changed
+1177325 -188362

No files matched your search

@@ -45,7 +45,9 @@ describe("subscription app boundary", () => {
expect(source).toContain("../../db.server");
expect(source).toContain("clearCacheKey");
expect(source).toContain("cancelTenantSubscription");
expect(source).toContain("EventsService.create");
expect(source).toContain("cancelRecurringProductAcquisition");
expect(source).not.toContain("EventsService");
expect(source).not.toContain("cancelTenantSubscriptionProduct");
for (const model of directBillingPrismaModels) {
expect(source).not.toMatch(new RegExp(`\\bdb\\.${model}\\b`));
@@ -53,13 +55,13 @@ describe("subscription app boundary", () => {
});
it("keeps tenant subscription settings writes behind cache-clearing web wrappers", () => {
const source = readRepoFile("apps/web/app/routes/app.$tenant/settings/subscription.tsx");
const source = readRepoFile("apps/web/app/routes/app.$tenant/settings/billing/index.tsx");
const directPackageImport = source.match(/import\s+\{([^}]+)\}\s+from\s+["']@hivegrid\/db\/subscriptions\.server["']/s);
const importedNames = directPackageImport?.[1] ?? "";
expect(importedNames).not.toMatch(/\bcreateTenantSubscription\b/);
expect(importedNames).not.toMatch(/\bupdateTenantSubscriptionCustomerId\b/);
expect(source).toContain("~/utils/db/tenantSubscriptions.db.server");
expect(source).toMatch(/~\/utils\/db\/tenantSubscriptions\.db\.server|~\/services\/billing\/self-service-subscription\.server/u);
});
it("keeps the legacy subscribe route free of in-app checkout writes and plan UI", () => {