Skip to content

fix: correct misleading fallback test for PathReplacer workspaceFolder#414

Merged
recca0120 merged 1 commit into
mainfrom
fix/workspace-folder-consistency
Apr 2, 2026
Merged

fix: correct misleading fallback test for PathReplacer workspaceFolder#414
recca0120 merged 1 commit into
mainfrom
fix/workspace-folder-consistency

Conversation

@recca0120

Copy link
Copy Markdown
Owner

Summary

  • Fix fallback test from Make resolving of workspaceFolder consistent #413 that asserted a double-nested path (/workspace/apps/api/apps/api/...) as expected behavior — this was actually a bug demonstration, not correct behavior
  • Replace with a semantic check verifying ${workspaceFolder} falls back to cwd when workspaceFolder is not provided

Test plan

  • All 967 phpunit package tests pass

Rename test to clarify intent: without workspaceFolder parameter,
${workspaceFolder} falls back to cwd, producing duplicated path
segments in monorepo setups. This documents the known limitation
that the workspaceFolder parameter was introduced to fix.
@recca0120 recca0120 force-pushed the fix/workspace-folder-consistency branch from 6c75d9a to 04b8742 Compare April 2, 2026 13:33
@recca0120 recca0120 merged commit 04b8742 into main Apr 2, 2026
12 checks passed
@recca0120 recca0120 deleted the fix/workspace-folder-consistency branch April 2, 2026 13:52
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.

1 participant