Repository navigation
Add free-user guardrail test suite (test:free-users) - #1424
Conversation
A single always-runnable suite asserting every Pro/sync-gated frontend feature stays inert in the community build (proSync.isPro === false), turning the open-core "free users unaffected" rule into a regression test. Covers: - proSync.isPro is false for community and the default 'unknown' tier. - Recovered Items (core#1303): load() is a no-op, never invokes the daemon command, and reports no item for any node (no badge/snackbar can render). - #188 reconnect-replay coalescer: community still applies node:updated / node:deleted through the unchanged per-event path (no coalescing window), with no Pro daemon command invoked. Run with `bun run test:free-users` after any cross-repo or Pro-feature change; extend it whenever a new Pro feature adds a frontend surface. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
|
APPROVE Test-only (one suite + one
One minor note (non-blocking): the #188 coalescer community test asserts the node still lands in the store via Worth keeping this file the canonical place to extend per the PR note. Good to merge. |
A single always-runnable suite asserting every Pro/sync-gated frontend feature stays inert in the community build (proSync.isPro === false), turning the open-core "free users unaffected" rule into a regression test. Covers: - proSync.isPro is false for community and the default 'unknown' tier. - Recovered Items (core#1303): load() is a no-op, never invokes the daemon command, and reports no item for any node (no badge/snackbar can render). - #188 reconnect-replay coalescer: community still applies node:updated / node:deleted through the unchanged per-event path (no coalescing window), with no Pro daemon command invoked. Run with `bun run test:free-users` after any cross-repo or Pro-feature change; extend it whenever a new Pro feature adds a frontend surface. Co-authored-by: Mayank Tomar <[email protected]> Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
What
A single, always-runnable suite (
src/tests/free-user-guardrail.test.ts+ abun run test:free-usersscript) that asserts every Pro/sync-gated frontend feature stays inert in the community (free) build — i.e. whenproSync.isProis false. It turns the open-core "Pro/sync work must keep the community build behaviorally unchanged" rule into a regression test you can run after any cross-repo or Pro-feature change.Coverage
proSync.isProis false for thecommunitytier and the defaultunknowntier (fresh app, before any probe).recoveredItems.load()is a no-op, never invokes thepro_list_recovered_itemsdaemon command, andhasFor/itemForreport nothing — so no inline badge or snackbar can ever render in community.node:updated/node:deletedthrough the unchanged per-event path (no coalescing window engages), with no Pro daemon command invoked.Notes
bun run test:free-usersgreen.