Skip to content

fix(tests): decode percent-encoded spaces in test suite paths (#350) - #374

Open
KunalSoyane wants to merge 1 commit into
Conway-Research:mainfrom
KunalSoyane:fix/path-space-encoding-350
Open

fix(tests): decode percent-encoded spaces in test suite paths (#350)#374
KunalSoyane wants to merge 1 commit into
Conway-Research:mainfrom
KunalSoyane:fix/path-space-encoding-350

Conversation

@KunalSoyane

Copy link
Copy Markdown

Summary

Fixes #350 by properly decoding percent-encoded characters (e.g., %20 for spaces) when resolving file paths across test suites.

Root Cause

Accessing .pathname directly on a URL instance leaves URL percent-encodings intact. When the repository resides in a directory with spaces in its path, Node's fs functions fail with an ENOENT error.

Changes

Replaced direct .pathname string access with fileURLToPath from node:url in command-injection and skills-hardening test files.

Related Issues

Closes #350

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.

Test suite fails with ENOENT when the repo path contains a space (URL.pathname percent-encoding in source-safety specs)

1 participant