Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@owlstronaut
Copy link
Contributor

@owlstronaut owlstronaut commented Oct 15, 2025

This pull request adds support for using the built-in node:test test runner as an alternative to tap, allowing projects to opt in via configuration. It updates configuration logic, generated files, and CI workflows to handle both test runners appropriately, and includes new tests to verify the correct behavior for each scenario.

I validated that there is no change from applying template-oss unless the package has updated the testRunner to be node:test

@owlstronaut owlstronaut force-pushed the owlstronaut/node-test-config branch from 2e33478 to 5940489 Compare October 15, 2025 21:37
@owlstronaut owlstronaut marked this pull request as ready for review October 15, 2025 21:44
@owlstronaut owlstronaut requested a review from a team as a code owner October 15, 2025 21:44
// Verify test scripts are for node:test
t.equal(pkg.scripts.test, 'node --test --test-timeout=3000')
t.equal(
pkg.scripts['test:cover'],
Copy link
Member

Choose a reason for hiding this comment

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

so we don't run coverage on npm test but on npm test:cover? When does CI enforce this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@wraithgar Yep! This makes it easier to separate it from the others. When it is v24+ of node, it'll run test:cover and get an exit code 1, indicating a failure on the tests.

@owlstronaut owlstronaut merged commit f3f2f25 into main Oct 16, 2025
18 checks passed
@owlstronaut owlstronaut deleted the owlstronaut/node-test-config branch October 16, 2025 17:42
@github-actions github-actions bot mentioned this pull request Oct 16, 2025
owlstronaut pushed a commit that referenced this pull request Oct 16, 2025
🤖 I have created a release *beep* *boop*
---


##
[4.26.0](v4.25.1...v4.26.0)
(2025-10-16)
### Features
*
[`f3f2f25`](f3f2f25)
[#529](#529) adds testRunner
config to specify using node:test (@owlstronaut)

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.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.

2 participants