servers/src/filesystem/__tests__
Repository files (latest commit first)
Filename Latest commit message Latest commit date
olaservo c3b26fad30 Fix platform-dependent relative path test in filesystem
The test was expecting forward slashes to always be converted to backslashes, but normalizePath() only does this on Windows (process.platform === 'win32'). On Linux/Unix, forward slashes are preserved.

Improved the fix by:
1. Removing relative path assertion from the "as is" test since it doesn't match intent
2. Adding a dedicated test that validates platform-specific behavior naturally without mocking
3. Using the actual platform instead of unreliable Object.defineProperty mocking

This approach is more reliable and clearly documents expected behavior per platform.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-28 21:27:13 -07:00
..
directory-tree.test.ts Migrate sequentialthinking and filesystem servers from Jest to Vitest 2025-10-19 11:21:58 -07:00
lib.test.ts Migrate sequentialthinking and filesystem servers from Jest to Vitest 2025-10-19 11:21:58 -07:00
path-utils.test.ts Fix platform-dependent relative path test in filesystem 2025-10-28 21:27:13 -07:00
path-validation.test.ts Migrate sequentialthinking and filesystem servers from Jest to Vitest 2025-10-19 11:21:58 -07:00
roots-utils.test.ts Migrate sequentialthinking and filesystem servers from Jest to Vitest 2025-10-19 11:21:58 -07:00