Skip to content

Conversation

@Jimmynycu
Copy link

Fix issue where tests fail when run from directories like /node because the project root path appears as a substring in URLs (nodejs.org) or other paths (/node_modules).

Use a regex that only matches the project root when followed by a path separator, colon, whitespace, or end of string.

Fixes: #61303

Fix issue where tests fail when run from directories like /node
because the project root path appears as a substring in URLs
(nodejs.org) or other paths (/node_modules).

Use a regex that only matches the project root when followed by
a path separator, colon, whitespace, or end of string.

Fixes: nodejs#61303
@nodejs-github-bot nodejs-github-bot added needs-ci PRs that need a full CI run. test Issues and PRs related to the tests. labels Jan 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-ci PRs that need a full CI run. test Issues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Some tests are not fully CWD-agnostic

2 participants