Skip to content

Resolve test dir with fileURLToPath so tests run on Windows - #3

Open
MrTig-afk wants to merge 1 commit into
nitrosend:mainfrom
MrTig-afk:fix/windows-test-runner-path
Open

Resolve test dir with fileURLToPath so tests run on Windows#3
MrTig-afk wants to merge 1 commit into
nitrosend:mainfrom
MrTig-afk:fix/windows-test-runner-path

Conversation

@MrTig-afk

Copy link
Copy Markdown

scripts/run-tests.mjs derives the dist path with new URL("../dist", import.meta.url).pathname. On Windows this yields /F:/..., which Node resolves to F:\F:\..., and the runner exits with ENOENT before listing any tests.

Fix: convert with fileURLToPath.

Verification: before, the suite cannot start on Windows. After, 57/57 pass.

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