feat(plans): publish honest Free and Pro
CI and Deploy / test (pull_request) Successful in 5m6s
CI and Deploy / deploy (pull_request) Has been skipped

This commit is contained in:
cesnimda
2026-08-15 18:04:18 +02:00
parent a7c25499bb
commit a25c31b93a
26 changed files with 403 additions and 93 deletions
+10
View File
@@ -0,0 +1,10 @@
import { PUBLIC_PLANS, publicPlan } from "./planCatalog";
test("publishes only capability-based Free and Pro plans", () => {
expect(PUBLIC_PLANS.map((plan) => plan.id)).toEqual(["free", "pro"]);
expect(publicPlan("free").summary).toMatch(/without AI generation/i);
expect(publicPlan("pro").features).toContain("Everything in Free");
const publicCopy = JSON.stringify(PUBLIC_PLANS);
expect(publicCopy).not.toMatch(/[£$€]|unlimited|trial|billed|per month|per year/i);
});