Commit Graph

5 Commits

Author SHA1 Message Date
Peter Steinberger
67e3f5250f
fix: fall back to legacy config after empty xdg home (#185) 2026-05-21 22:15:13 +01:00
Peter Steinberger
bb6e64617a
fix: honor xdg directories 2026-05-04 08:14:31 +01:00
Peter Steinberger
f02a59bc89 Add regression tests for ENOENT fix when no config exists
Tests cover the scenario where mcporter is run in a completely empty
environment (no config files anywhere - not in project dir, home dir,
or env vars). Before the fix, this would crash with ENOENT.

Unit tests:
- resolveConfigPath returns explicit=false when no config exists anywhere

E2E tests:
- list command succeeds with empty environment
- list --json outputs valid JSON with empty servers array
- config list succeeds
- config doctor succeeds and shows version banner
2025-11-28 05:30:30 +00:00
Peter Steinberger
6a59c7794e chore: tidy imports 2025-11-10 14:20:57 +00:00
Peter Steinberger
e7f3c93424 test(config): cover fallback order 2025-11-10 14:18:12 +00:00