test: skip symlink cases without Windows privileges by dajiaohuang · Pull Request #2667 · ChromeDevTools/chrome-devtools-mcp · GitHub
Skip to content

test: skip symlink cases without Windows privileges - #2667

Open
dajiaohuang wants to merge 1 commit into
ChromeDevTools:mainfrom
dajiaohuang:fix/2666-windows-symlink-tests
Open

test: skip symlink cases without Windows privileges#2667
dajiaohuang wants to merge 1 commit into
ChromeDevTools:mainfrom
dajiaohuang:fix/2666-windows-symlink-tests

Conversation

@dajiaohuang

Copy link
Copy Markdown

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

@google-cla

google-cla Bot commented Sep 4, 2026

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

tests: symlink cases fail on Windows without symlink privileges

1 participant