test: add registry consumer smoke coverage

This commit is contained in:
2026-03-20 10:54:12 +08:00
parent e8aea4b88a
commit 5c9eb84c63
7 changed files with 271 additions and 0 deletions
+9
View File
@@ -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
+10
View File
@@ -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: