@openrails/billing-ui 0.263.1 → 0.263.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -360,26 +360,27 @@ provider:
360
360
  managed with `pnpm dlx shadcn@4.21.0 add <name> --overwrite`, importing `cn`
361
361
  from the [`cn`](https://github.com/shadcn-ui/cn) package.
362
362
 
363
- ## E2E against real OpenRails
363
+ ## Critical client contracts
364
364
 
365
- `e2e/server` is a Go module that builds the OpenRails at this commit (`replace`
366
- to the repository root) with AuthKit. It serves the
367
- embedded `/billing/v1` API and `/auth/v1` on a throwaway `postgres:18-alpine`
368
- container (Docker and Go required), with test-only `POST /__test/users` (user +
369
- access token) and `POST /__test/users/{id}/billing` (imported subscription,
370
- sale and saved card on a credential-less NMI PSP).
365
+ `critical/` exercises the built client in Chromium against real AuthKit,
366
+ OpenRails, PostgreSQL, and the actual Stripe adapter. The Go critical suite
367
+ owns isolated schemas, credentials, external provider fixtures, and network
368
+ faults. Set `OPENRAILS_CRITICAL_DSN` to an owned disposable PostgreSQL database;
369
+ no missing service is accepted as a skipped critical case.
371
370
 
372
371
  ```sh
373
- pnpm test:e2e # Playwright against the real server
372
+ pnpm critical:build # build the SDK, browser bundle, and check driver types
373
+ pnpm critical:static # reuse dist: type/lint and packed-artifact checks
374
+ pnpm test:e2e # local SDK subset, hosted by the real Go fixtures
374
375
  pnpm contract # regenerate OpenRails' contract files, src/client/generated among them
375
376
  pnpm contract:check # fail if a generated contract file is stale
376
377
  ```
377
378
 
378
- `e2e/openrails/account.spec.ts` drives the packaged `AccountBilling` (built from
379
- `dist/`) through list, cancel, resume, the in-use card refusal and history. Set
380
- `BILLING_UI_SCREENSHOTS=<dir>` to capture light, dark and mobile screenshots.
381
- Card deletion calls NMI, which the harness has no credentials for; jsdom tests
382
- cover it.
379
+ Install Chromium with `pnpm exec playwright install chromium`. Required CI
380
+ builds once, then runs the root critical suite, including these browser cases.
381
+ The local SDK command does not establish coverage of the full Go suite.
382
+ The selected methods and executable browser cases have explicit result gates;
383
+ method invocation alone does not establish complete method functionality.
383
384
 
384
385
  ## License
385
386