test: add registry consumer smoke coverage
This commit is contained in:
@@ -37,6 +37,15 @@ pnpm registry:check
|
||||
The pull request workflow now runs `pnpm registry:check`, and the release version PR
|
||||
workflow refreshes the registry automatically via `pnpm release:version`.
|
||||
|
||||
To validate the end-to-end consumer flow locally:
|
||||
|
||||
```bash
|
||||
pnpm test:registry:consumer
|
||||
```
|
||||
|
||||
That smoke test creates a temporary app, runs the registry installer, installs the
|
||||
required dependencies, and verifies that the copied source both typechecks and builds.
|
||||
|
||||
## Consumer install flow
|
||||
|
||||
### 1. Pin the Cadence UI source
|
||||
|
||||
@@ -78,6 +78,7 @@ Use the docs and smoke checks when the change touches behavior-heavy UI:
|
||||
|
||||
```bash
|
||||
pnpm build:docs
|
||||
pnpm test:registry:consumer
|
||||
pnpm test:e2e:smoke
|
||||
```
|
||||
|
||||
@@ -166,6 +167,15 @@ pnpm registry:check
|
||||
|
||||
This prevents registry metadata drift from merging unnoticed.
|
||||
|
||||
The repo also runs:
|
||||
|
||||
```bash
|
||||
pnpm test:registry:consumer
|
||||
```
|
||||
|
||||
This verifies that the committed registry snapshot can still install into a fresh
|
||||
consumer app, typecheck, and build.
|
||||
|
||||
### Version PR workflow
|
||||
|
||||
The `Release Version PR` workflow runs on pushes to `main` and on manual dispatch. It:
|
||||
|
||||
Reference in New Issue
Block a user