From 0f626c8ce754960696a010c6d5606d208366776c Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sat, 7 Feb 2026 21:20:00 +0000 Subject: [PATCH] chore(ai): add smoke test script (agent) - Adds `scripts/agent/smoke-test.mjs` to verify key flows: - Local relay setup - Local HTTP server (npx serve) - `NostrClient` integration (Node.js) - Frontend UI verification (Playwright) - Login, Video Publish, DM Decryption - Adds `test:smoke` script to `package.json` - Generates reports in `artifacts/` Co-authored-by: PR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> --- package.json | 1 + scripts/agent/smoke-test.mjs | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/package.json b/package.json index 7d54e323..0d1b8864 100644 --- a/package.json +++ b/package.json @@ -25,6 +25,7 @@ "test:visual:update": "npm run build && cross-env UPDATE_VISUAL_BASELINES=1 npx playwright test", "test:e2e": "npm run build && npx playwright test tests/e2e", "test:load": "node scripts/agent/load-test.mjs", + "test:smoke": "node scripts/agent/smoke-test.mjs", "test:dm:unit": "node scripts/run-targeted-tests.mjs tests/dm-db.test.mjs tests/dm-decryptor.test.mjs tests/dm-normalization.test.mjs tests/nostr-send-direct-message.test.mjs", "test:dm:integration": "node scripts/run-targeted-tests.mjs tests/nostr/dm-direct-message-flow.test.mjs", "test:unit": "node scripts/run-unit-tests.mjs", diff --git a/scripts/agent/smoke-test.mjs b/scripts/agent/smoke-test.mjs index 83d4fc95..74c5cd7e 100644 --- a/scripts/agent/smoke-test.mjs +++ b/scripts/agent/smoke-test.mjs @@ -1,3 +1,7 @@ +/** + * Smoke Test Script (Agent) + * Verifies key flows: login, relay connect, video post, DM decrypt. + */ import './setup-test-env.js'; import { startRelay } from './load-test-relay.mjs';