QA Emulators & Testing
Every plugin in @vicacha-devs/medusa-v2-extensions is verified offline before any Docker or live sandbox run.
Offline Verification (pnpm qa:verify)
Section titled “Offline Verification (pnpm qa:verify)”pnpm qa:doctor # Environment & Medusa version drift checkspnpm qa:judges # Adversarial quality judges (manifests, tests, i18n parity, sandbox wiring)pnpm qa:verify # Doctor + judges + publint + all plugin test suites -> .qa/dashboard.html4-Layer External Gateway QA Emulator Blueprint
Section titled “4-Layer External Gateway QA Emulator Blueprint”Plugins integrating external APIs (payment-bold, dian, odoo, notifications) follow a 4-layer automation blueprint:
- SSRF-Guarded Base URL Overrides: Allow
https://or loopbackhttp://127.0.0.1/http://localhostoverrides in non-production environments. - Loopback QA Emulator (
127.0.0.1): Purenode:httpserver emulating external endpoints with/__qa/simulate-*and/__qa/faultcontrols (e.g.,pnpm bold:emulator). - Fast Offline Use-Case Matrix (
node --test): Exercises positive flows, signed HMAC webhooks, SSE streams, refunds, and negative security cases over real loopback sockets. - Playwright E2E + Scheduled Live Sandbox Contract CI: Automated UI/API E2E in
apps/sandbox/e2e/plus scheduled upstream contract checks.