SIGN IN SIGN UP
denoland / deno UNCLAIMED

A modern runtime for JavaScript and TypeScript.

0 0 16 Rust

fix(ext/node): add node:test/reporters builtin (#34595)

Adds the missing `node:test/reporters` builtin module and wires it
through ESM, CommonJS, and the node resolver built-in allowlist.

The module exports the documented built-in reporters (`tap`, `dot`,
`junit`, `spec`, and `lcov`) and includes a regression spec for
`node:test/reporters` resolution and TAP output.

Closes denoland/orchid#343
Fixes https://github.com/denoland/deno/issues/31206

Validation:
- `CARGO_INCREMENTAL=0 cargo build --bin deno --bin test_server`
- `./target/debug/deno run
tests/specs/node/node_test_reporters/main.mjs`
- `cargo test -p specs_tests --test specs -- node_test_reporters
--no-capture`
- `cargo test -p node_resolver test_builtins_are_sorted`
- `cargo fmt --check`
- `./target/debug/deno fmt --check ext/node/polyfills/test/reporters.ts
ext/node/polyfills/test/reporters_esm.ts
tests/specs/node/node_test_reporters/main.mjs
tests/specs/node/node_test_reporters/__test__.jsonc`

Co-authored-by: divybot <divybot@users.noreply.github.com>
Co-authored-by: Divy Srivastava <me@littledivy.com>
E
em committed
e3a9cc5262ee8fdd7bbde63fd4bf5becc710596c
Parent: 847e6a9
Committed by GitHub <noreply@github.com> on 5/31/2026, 5:34:00 AM