Commit 8cc295b
test: isolate HOME in context-mode-detector tests (#57)
detectContextMode falls back to ~/.mcp.json (HOME/USERPROFILE). On a dev
machine with a real ~/.mcp.json the three "no detection" cases reported
detected=true and failed locally (clean in CI, which has no ~/.mcp.json).
beforeEach now points HOME at a clean temp home with no .mcp.json and restores
it after, so the suite is deterministic everywhere. Test-only; no shipped change.
Full suite now 1416/1416 locally.
Co-authored-by: shahinyanm <mher.shahinyan@12go.asia>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 4dbaf3f commit 8cc295b
1 file changed
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
9 | 12 | | |
10 | 13 | | |
11 | 14 | | |
12 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
13 | 25 | | |
14 | 26 | | |
15 | 27 | | |
16 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
17 | 34 | | |
18 | 35 | | |
19 | 36 | | |
| |||
0 commit comments