Title: errors thrown in describe() do not set non-zero exitCode (and do not fail CI) · Issue #58687 · nodejs/node · GitHub
Open Graph Title: errors thrown in describe() do not set non-zero exitCode (and do not fail CI) · Issue #58687 · nodejs/node
X Title: errors thrown in describe() do not set non-zero exitCode (and do not fail CI) · Issue #58687 · nodejs/node
Description: Version v24.2.0 Platform Darwin 24.4.0 Darwin Kernel Version 24.4.0: Fri Apr 11 18:34:14 PDT 2025; root:xnu-11417.101.15~117/RELEASE_ARM64_T8122 arm64 Subsystem test What steps will reproduce the bug? import { describe, test } from 'node...
Open Graph Description: Version v24.2.0 Platform Darwin 24.4.0 Darwin Kernel Version 24.4.0: Fri Apr 11 18:34:14 PDT 2025; root:xnu-11417.101.15~117/RELEASE_ARM64_T8122 arm64 Subsystem test What steps will reproduce the b...
X Description: Version v24.2.0 Platform Darwin 24.4.0 Darwin Kernel Version 24.4.0: Fri Apr 11 18:34:14 PDT 2025; root:xnu-11417.101.15~117/RELEASE_ARM64_T8122 arm64 Subsystem test What steps will reproduce the b...
Opengraph URL: https://github.com/nodejs/node/issues/58687
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"errors thrown in describe() do not set non-zero exitCode (and do not fail CI)","articleBody":"### Version\n\nv24.2.0\n\n### Platform\n\n```text\nDarwin 24.4.0 Darwin Kernel Version 24.4.0: Fri Apr 11 18:34:14 PDT 2025; root:xnu-11417.101.15~117/RELEASE_ARM64_T8122 arm64\n```\n\n### Subsystem\n\ntest\n\n### What steps will reproduce the bug?\n\n```js\nimport { describe, test } from 'node:test'\nimport assert from 'node:assert/strict'\n\ndescribe('green', () =\u003e {\n test('one', () =\u003e {\n assert(1 === 1)\n })\n})\n\ndescribe('red', () =\u003e {\n test_('one', () =\u003e {\n assert(1 === 1)\n })\n\n test('two', () =\u003e {\n assert(1 === 2)\n })\n})\n```\n\n`node --test foo.js; echo $?`\n\n### How often does it reproduce? Is there a required condition?\n\nEvery time\n\n### What is the expected behavior? Why is that the expected behavior?\n\nA test failure printed and a non-zero exit code upon test termination\n\n### What do you see instead?\n\nA test failure printed but the exit code is zero, the test is effectively treated as passing by tooling / CI\n\n### Additional information\n\nA work-around using a custom reporter is possible, see https://github.com/ExodusMovement/test/commit/749370166fe70e51dd60e1c11a012cc64a0b15eb","author":{"url":"https://github.com/ChALkeR","@type":"Person","name":"ChALkeR"},"datePublished":"2025-06-12T04:42:48.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/58687/node/issues/58687"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ff489d8f-a23e-2db4-bf9f-e491b7ea2d14 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E88A:DCE25:47FF9C:66CD7B:6A4CA39E |
| html-safe-nonce | 77b68380b2baaa7330b383885e73a2ca74994eaf2cd6fce10d4987fc8326b310 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFODhBOkRDRTI1OjQ3RkY5Qzo2NkNEN0I6NkE0Q0EzOUUiLCJ2aXNpdG9yX2lkIjoiMTM1MzQ5OTM1MjQ0NjU3NTUxOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9588416202e6656aaffb107803a2886874de33ab3b19cf40b21001a4c51de99c |
| hovercard-subject-tag | issue:3138821716 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/58687/issue_layout |
| twitter:image | https://opengraph.githubassets.com/16639a98a52cf5c6a352039fa0bc6bccdca8de75858906166a7a0f28615e272e/nodejs/node/issues/58687 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/16639a98a52cf5c6a352039fa0bc6bccdca8de75858906166a7a0f28615e272e/nodejs/node/issues/58687 |
| og:image:alt | Version v24.2.0 Platform Darwin 24.4.0 Darwin Kernel Version 24.4.0: Fri Apr 11 18:34:14 PDT 2025; root:xnu-11417.101.15~117/RELEASE_ARM64_T8122 arm64 Subsystem test What steps will reproduce the b... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ChALkeR |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ae90d426644ca15e89bacceb72e51f4e9dbf85f7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width