diff --git a/docs/live-smoke.md b/docs/live-smoke.md index dab9208..ab2eb69 100644 --- a/docs/live-smoke.md +++ b/docs/live-smoke.md @@ -17,7 +17,7 @@ pnpm install --frozen-lockfile Run the smoke with an HTTP(S) Monad mainnet endpoint: ```bash -MOSS_RPC_URL=https://rpc.monad.xyz pnpm --filter @moss-mini-demo/moss-adapter test:live +MOSS_RPC_URL=https://rpc.monad.xyz pnpm test:live ``` `MOSS_RPC_URL` is server-only secret material even when the public endpoint is used. Do not paste the raw URL, request headers, provider logs, or raw RPC request/response bodies into Issues or PRs. URLs containing username/password credentials are rejected. diff --git a/package.json b/package.json index 103a052..bb15c7f 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,7 @@ "fixtures:generate": "pnpm build && node tests/fixtures/generate-scenario-bundles.mjs && biome format --write fixtures/happy-path fixtures/amount-mismatch fixtures/rpc-failure fixtures/receipt-warning", "test:fixtures": "pnpm build && vitest run tests/fixtures", "test:integration": "pnpm build && vitest run tests/integration", + "test:live": "pnpm --filter @moss-mini-demo/moss-adapter test:live", "test:package-import": "pnpm --filter @moss-mini-demo/report-schema build && pnpm --filter @moss-mini-demo/clear402-profile build && pnpm --filter @moss-mini-demo/decision-engine build && pnpm --filter @moss-mini-demo/moss-adapter build && pnpm --filter @moss-mini-demo/preflight-core build && node packages/report-schema/test/public-entry.smoke.mjs && node packages/clear402-profile/test/public-entry.smoke.mjs && node packages/decision-engine/test/public-entry.smoke.mjs && node --conditions=react-server packages/moss-adapter/test/public-entry.smoke.mjs && node packages/preflight-core/test/public-entry.smoke.mjs", "test:coverage": "pnpm --filter @moss-mini-demo/clear402-profile test:coverage && pnpm --filter @moss-mini-demo/preflight-core test:coverage", "test:e2e": "playwright test", diff --git a/packages/moss-adapter/test/root-script.test.mjs b/packages/moss-adapter/test/root-script.test.mjs new file mode 100644 index 0000000..7c4769c --- /dev/null +++ b/packages/moss-adapter/test/root-script.test.mjs @@ -0,0 +1,15 @@ +import { readFile } from "node:fs/promises"; +import { resolve } from "node:path"; +import { describe, expect, it } from "vitest"; + +describe("root release commands", () => { + it("exposes the Gate C live smoke through the pinned Moss adapter", async () => { + const packageJson = JSON.parse( + await readFile(resolve(process.cwd(), "package.json"), "utf8"), + ); + + expect(packageJson.scripts?.["test:live"]).toBe( + "pnpm --filter @moss-mini-demo/moss-adapter test:live", + ); + }); +});