Repository navigation
fix(ext/node): enable quic node compat tests by correcting .mjs file extensions in config - #33824
Conversation
…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
left a comment
There was a problem hiding this comment.
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.
…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>
Summary
Enables
test-quicin node_compat suite.Test plan
cargo test --test node_compat -- test-quic