You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the dead test-file imports were repaired (PR #9 / #8), ~25 previously-dead test
files began running again. Most pass, but a set of pre-existing, import-unrelated
failures became visible. To restore a green CI baseline (so future regressions are
detectable), these tests are temporarily quarantined with it.skip / describe.skip
and a // TODO(#<this issue>) marker. This issue tracks un-quarantining them.
None of these are caused by the import repair — they are pre-existing test↔code drift,
tests that call live external APIs, timing/concurrency flakiness, and timeouts.
Quarantined tests by file and root cause
tests/cli/wizard.test.ts (28) — test↔code drift
The wizard was refactored (new config defaults e.g. proxyPort 3333 vs expected 3000,
changed prompt structure — to have property "validate", reworked language-selection
flow — Language selection cancelled by user) but the tests were not updated.
Fix: rewrite expectations/mocks against current wizard behavior.
tests/sampling-executor-integration.test.ts (8) — live external API
Tests issue real provider calls with a fake key → 401 Incorrect API key. Need provider
mocking (or a documented live-credential gate), not real network calls in CI.
tests/cli/mcp-discovery.test.ts (up to 9) — fs-mock / timeout
scanToolConfig / discoverMCPServers tests hang to 30s timeout under mocked fs.
Root cause for the security/sampling-attacks.test.ts entry: it imports src/index, whose top-level entry IIFE (command dispatch → server.start()) runs at import time and calls process.exit(1) on a startup error. In CI (no config) this fires asynchronously and vitest reports it as an unhandled error, aborting the whole run regardless of test outcomes. it.skip/describe.skip do not help because the import still executes.
Quarantine for this file is therefore a vitest.config exclude (the file never loads), not an in-file skip.
Proper fix (to un-quarantine): guard the entry IIFE in src/index.ts so it only runs when executed as the binary entry point (e.g. import.meta.main), not when imported as a module. Then re-enable the file.
Activity
test: quarantine pre-existing failing tests to restore green CI (#10)
test: quarantine pre-existing failing tests to restore green CI (#10)
test: quarantine pre-existing failing tests to restore green CI (#10)
SWSAmor commentedon Jun 23, 2026
Root cause for the
security/sampling-attacks.test.tsentry: it importssrc/index, whose top-level entry IIFE (command dispatch →server.start()) runs at import time and callsprocess.exit(1)on a startup error. In CI (no config) this fires asynchronously and vitest reports it as an unhandled error, aborting the whole run regardless of test outcomes.it.skip/describe.skipdo not help because the import still executes.Quarantine for this file is therefore a vitest.config
exclude(the file never loads), not an in-file skip.Proper fix (to un-quarantine): guard the entry IIFE in
src/index.tsso it only runs when executed as the binary entry point (e.g.import.meta.main), not when imported as a module. Then re-enable the file.test: quarantine pre-existing failing tests to restore green CI (#10)