import { describe, it } from 'node:test'; import assert from 'node:assert'; import { spawnSync } from 'node:child_process'; import * as fs from 'node:fs'; import * as path from 'node:path'; import { fileURLToPath } from 'node:url'; import { SERVER_CONFIG } from '../build/config/server.js'; const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename); const rootDir = path.resolve(__dirname, '..'); const entrypoint = path.join(rootDir, 'build', 'index.js'); const packageJson = JSON.parse( fs.readFileSync(path.join(rootDir, 'package.json'), 'utf8') ); const expectedHelpOptions = [ '--config-file ', '--ssh-config-file ', '--ssh ', '-h, --host ', '-p, --port ', '-u, --username ', '-w, --password ', '-k, --privateKey ', '-P, --passphrase ', '-a, --agent ', '-W, --whitelist ', '-B, --blacklist ', '--proxy ', '-s, --socksProxy ', '--allowed-local-paths ', '--allowed-remote-paths ', '--transport-mode ', '--shell-ready-timeout ', '--command-template