Skip to content

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

Merged
littledivy merged 2 commits into
mainfrom
orch/divybot-343
May 31, 2026
Merged

fix(ext/node): add node:test/reporters builtin#34595
littledivy merged 2 commits into
mainfrom
orch/divybot-343

Conversation

@divybot

@divybot divybot commented May 31, 2026

Copy link
Copy Markdown
Contributor

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/divybot#343
Fixes #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

@littledivy
littledivy force-pushed the orch/divybot-343 branch 2 times, most recently from d6a105a to 2833ffa Compare May 31, 2026 03:38

@littledivy littledivy left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We have tap reporter stuff in node:test. Dedup?

@littledivy littledivy changed the title feat(node): add node:test/reporters builtin fix(ext/node): add node:test/reporters builtin May 31, 2026
@littledivy
littledivy enabled auto-merge (squash) May 31, 2026 05:15
@littledivy
littledivy merged commit e3a9cc5 into main May 31, 2026
137 checks passed
@littledivy
littledivy deleted the orch/divybot-343 branch May 31, 2026 05:34
littledivy added a commit to crowlKats/deno that referenced this pull request Jun 10, 2026
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 denoland#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 <[email protected]>
Co-authored-by: Divy Srivastava <[email protected]>
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.

Deno has no node:test/reporters module

2 participants