Files
Wu Shuwen 61a9bd2df2 test: skip symlink cases without Windows privileges (#2667)
Fixes #2666.

This keeps the symlink-specific `resolveCanonicalPath` coverage on hosts
that can create symbolic links. When Windows rejects `fs.symlink` with
`EPERM` or `EACCES`, only that case is marked skipped; non-symlink cases
and unexpected errors still run or fail normally.

Tests:

- `npm test -- tests/utils/files.test.ts` (3 passed, 4 skipped on
Windows without symlink privileges)
- `npm test -- tests/McpContext.test.ts`
- `npm test`
- `npm run check-format`
- `git diff --check`

---------

Co-authored-by: Natasha Gorshunova <47688881+nattallius@users.noreply.github.com>
2026-09-11 07:54:36 +00:00
..