test: add packed consumer install smoke

This commit is contained in:
Eve
2026-05-08 15:47:18 +08:00
parent 54ad955ac2
commit 8a91206e07
8 changed files with 738 additions and 3 deletions

View File

@@ -269,5 +269,19 @@ npm run smoke
reporting-governance-package-smoke --compact
```
This smoke path uses package-local `profiles-src/`, `schemas/`, and `scripts/` only.
Repeatable packed-consumer install smoke is now also covered by package test:
```bash
cd plugins/reporting-governance
npm pack
node --test test/packed-consumer-install.smoke.test.mjs
```
That path verifies a clean temp consumer can `npm install <tarball>` and then use only declared public surfaces:
- package root export: `@openclaw/plugin-reporting-governance`
- exported subpath: `@openclaw/plugin-reporting-governance/adapters/orchestrator`
- package bin: `reporting-governance-package-smoke`
This smoke path uses package-local `profiles-src/`, `schemas/`, and `scripts` only.
It writes temp runtime artifacts under a caller-provided or temp workspace and verifies the dry-run orchestrator path end to end.