test: add packed consumer install smoke
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user