Skip to content

fix(ext/node): enable quic node compat tests by correcting .mjs file extensions in config - #33824

Merged
littledivy merged 2 commits into
denoland:mainfrom
divybot:claude/test-quic
May 4, 2026
Merged

littledivy merged 2 commits into
denoland:mainfrom
divybot:claude/test-quic

Conversation

@divybot

@divybot divybot commented May 4, 2026

Copy link
Copy Markdown
Contributor

Summary

Enables test-quic in node_compat suite.

Test plan

  • cargo test --test node_compat -- test-quic

divybot and others added 2 commits May 4, 2026 17:20
…extensions in config

Enables tests/node_compat/runner/suite/test/parallel/test-quic.js

Co-authored-by: Divy Srivastava <me@littledivy.com>
…t config

The test uses `internal/test/binding` and `internalBinding`, which are
Node.js-only internal test APIs unavailable in Deno, causing an import
resolution error.

Co-authored-by: Divy Srivastava <me@littledivy.com>

@fibibot fibibot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Trivial config-only fix — corrects 5 stale .js-extension entries to their actual .mjs filenames, plus enables 4 additional quic tests that were absent from the previous list. CI fully green at this head (99 success, 1 skipped, 0 fail).

What I verified

I cross-referenced the upstream denoland/node_test test suite at submodule SHA c5baef08e6 and confirmed the actual quic test filenames are all .mjs:

test/parallel/test-quic-exports.mjs
test/parallel/test-quic-handshake-ipv6-only.mjs
test/parallel/test-quic-handshake.mjs
test/parallel/test-quic-internal-endpoint-listen-defaults.mjs
test/parallel/test-quic-internal-endpoint-options.mjs
test/parallel/test-quic-internal-endpoint-stats-state.mjs
test/parallel/test-quic-internal-setcallbacks.mjs
test/parallel/test-quic-test-client.mjs
test/parallel/test-quic-test-server.mjs

The 5 .js entries being removed didn't match any real files (the runner was silently skipping them — the failure mode I'd expect from a stale config). The 8 new .mjs entries all map to real files. ✓

Smaller observation (non-blocking)

One quic test in the suite isn't in this PR's enable list: test-quic-internal-setcallbacks.mjs (the .mjs counterpart of the previously-removed .js placeholder). If that's an intentional skip because the test fails at this head, worth a // reason: ... note next to its absence (or explicit listing with "ignore": true if the runner supports that). If it's accidental, just adding it as a 9th .mjs line completes the set.

@littledivy
littledivy merged commit 612ac3e into denoland:main May 4, 2026
136 checks passed
littledivy added a commit to crowlKats/deno that referenced this pull request Jun 10, 2026
…extensions in config (denoland#33824)

Enables `test-quic` in node_compat suite.

## Test plan
- [x] `cargo test --test node_compat -- test-quic`

Co-authored-by: Divy Srivastava <me@littledivy.com>
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.

3 participants