Skip to content

Commit 04b8742

Browse files
committed
fix: rename misleading fallback test for PathReplacer workspaceFolder
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.
1 parent d2ca6d3 commit 04b8742

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/phpunit/src/Configuration/PathReplacer.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ describe('PathReplacer', () => {
332332
expect(result).not.toContain('apps/api/apps/api');
333333
});
334334

335-
it(`falls back to cwd when workspaceFolder is not provided`, () => {
335+
it(`produces duplicated path segments when workspaceFolder is not provided`, () => {
336336
const pathReplacer = new PathReplacer({ cwd });
337337

338338
expect(

0 commit comments

Comments
 (0)