feat: add conformance tests for SEP-1699 SSE polling (#47)

This commit is contained in:
Felix Weinberger 2025-11-24 18:34:28 +00:00 • committed by GitHub
commit f0e948187d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -204,11 +204,14 @@ program
'Suite to run: "active" (default, excludes pending), "all", or "pending"',
'active'
)
.option('--verbose', 'Show verbose output (JSON instead of pretty print)')
.action(async (options) => {
try {
// Validate options with Zod
const validated = ServerOptionsSchema.parse(options);
const verbose = options.verbose ?? false;
// If a single scenario is specified, run just that one
if (validated.scenario) {
const result = await runServerConformanceTest(
@ -218,7 +221,8 @@ program
const { failed } = printServerResults(
result.checks,
result.scenarioDescription
result.scenarioDescription,
verbose
);
process.exit(failed > 0 ? 1 : 0);
} else {