Phase I — Starts MJAPI and Explorer in parallel, detects readiness via stdout markers, confirms with HTTP, then cleans up.
const smokeTest = new SmokeTestPhase();const result = await smokeTest.Run({ Dir: '/path/to/install', Config: { APIPort: 4000, ExplorerPort: 4200 }, Emitter: emitter,});if (result.ApiRunning && result.ExplorerRunning) { console.log('Smoke test passed!');} Copy
const smokeTest = new SmokeTestPhase();const result = await smokeTest.Run({ Dir: '/path/to/install', Config: { APIPort: 4000, ExplorerPort: 4200 }, Emitter: emitter,});if (result.ApiRunning && result.ExplorerRunning) { console.log('Smoke test passed!');}
Execute the smoke test phase: pre-check, detect ports, start services in parallel, verify readiness, clean up.
Smoke test input with directory, config, and emitter.
Health check results for MJAPI and Explorer.
With code MISSING_GENERATED_ENTITIES if the pre-check fails.
MISSING_GENERATED_ENTITIES
Phase I — Starts MJAPI and Explorer in parallel, detects readiness via stdout markers, confirms with HTTP, then cleans up.
Example