Skip to content

test: use file URLs for ESM distribution smoke checks - #258

Open
Aschenbath wants to merge 1 commit into
dagrejs:masterfrom
Aschenbath:fix/windows-esm-smoke-20261125-42bb
Open

Aschenbath wants to merge 1 commit into
dagrejs:masterfrom
Aschenbath:fix/windows-esm-smoke-20261125-42bb

Conversation

@Aschenbath

Copy link
Copy Markdown
Contributor

On Windows, the distribution smoke test imports an absolute drive-letter path such as H:\...\graphlib.esm.js. Node treats H: as a URL scheme and raises ERR_UNSUPPORTED_ESM_URL_SCHEME, so a valid bundle fails the test.

Convert the ESM import specifier with pathToFileURL. The CommonJS smoke test continues using a filesystem path.

Validation on Windows / Node 24.22.0: the original ESM smoke test fails with the URL-scheme error; after this change all 282 tests, TypeScript checks, and ESLint pass.

Prepared with OpenAI Codex assistance.

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