Skip to content

fix(filesystem): preserve UNC path prefix during normalization #7757

fix(filesystem): preserve UNC path prefix during normalization

fix(filesystem): preserve UNC path prefix during normalization #7757

Triggered via pull request April 12, 2026 13:41
Status Failure
Total duration 30s
Artifacts

typescript.yml

on: pull_request
detect-packages
3s
detect-packages
Matrix: test
Matrix: build
Matrix: publish
Fit to window
Zoom out
Zoom in

Annotations

4 errors
Test filesystem
Process completed with exit code 1.
__tests__/path-validation.test.ts > Path Validation > UNC paths (Windows network shares) > should accept the UNC directory itself: src/filesystem/path-validation.ts#L53
Error: Path must be absolute after normalization ❯ Module.isPathWithinAllowedDirectories path-validation.ts:53:11 ❯ __tests__/path-validation.test.ts:1017:14
__tests__/path-validation.test.ts > Path Validation > UNC paths (Windows network shares) > should reject files outside a UNC allowed directory: src/filesystem/path-validation.ts#L53
Error: Path must be absolute after normalization ❯ Module.isPathWithinAllowedDirectories path-validation.ts:53:11 ❯ __tests__/path-validation.test.ts:1011:14
__tests__/path-validation.test.ts > Path Validation > UNC paths (Windows network shares) > should accept files within a UNC allowed directory: src/filesystem/path-validation.ts#L53
Error: Path must be absolute after normalization ❯ Module.isPathWithinAllowedDirectories path-validation.ts:53:11 ❯ __tests__/path-validation.test.ts:1005:14