René's URL Explorer Experiment


Title: node:test run() w/ isolation=none waits for beforeExit · Issue #57234 · nodejs/node · GitHub

Open Graph Title: node:test run() w/ isolation=none waits for beforeExit · Issue #57234 · nodejs/node

X Title: node:test run() w/ isolation=none waits for beforeExit · Issue #57234 · nodejs/node

Description: Version 23.4 Platform Linux minitower 6.12.9-arch1-1 #1 SMP PREEMPT_DYNAMIC Fri, 10 Jan 2025 00:39:41 +0000 x86_64 GNU/Linux Subsystem node:test What steps will reproduce the bug? const {run} = require('node:test'); const t0 = Date.now()...

Open Graph Description: Version 23.4 Platform Linux minitower 6.12.9-arch1-1 #1 SMP PREEMPT_DYNAMIC Fri, 10 Jan 2025 00:39:41 +0000 x86_64 GNU/Linux Subsystem node:test What steps will reproduce the bug? const {run} = req...

X Description: Version 23.4 Platform Linux minitower 6.12.9-arch1-1 #1 SMP PREEMPT_DYNAMIC Fri, 10 Jan 2025 00:39:41 +0000 x86_64 GNU/Linux Subsystem node:test What steps will reproduce the bug? const {run} = req...

Opengraph URL: https://github.com/nodejs/node/issues/57234

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"node:test run() w/ isolation=none waits for beforeExit","articleBody":"### Version\n\n23.4\n\n### Platform\n\n```text\nLinux minitower 6.12.9-arch1-1 #1 SMP PREEMPT_DYNAMIC Fri, 10 Jan 2025 00:39:41 +0000 x86_64 GNU/Linux\n```\n\n### Subsystem\n\nnode:test\n\n### What steps will reproduce the bug?\n\n```javascript\nconst {run} = require('node:test');\n\nconst t0 = Date.now()\nconst s = run({\n  isolation: 'none',\n  files: [__dirname + '/code.test.js'],\n  // timeout: 2000, // no effect\n  // forceExit: true, // no effect\n});\n[ 'close', 'error', 'data', 'end', 'finish' ].forEach(e => {\n  s.on(e, x => console.log(Date.now() - t0, e, x?.type))\n});\n\nsetTimeout(() => {console.log('************* t=3000')}, 3000)\n/*\n5 data test:enqueue\n5 data test:dequeue\n5 data test:enqueue\n6 data test:complete\n6 data test:start\n6 data test:pass\n6 data test:dequeue\n6 data test:complete\n6 data test:start\n6 data test:fail\n************* t=3000\n3006 data test:plan\n3006 data test:diagnostic\n3006 data test:diagnostic\n3006 data test:diagnostic\n3006 data test:diagnostic\n3006 data test:diagnostic\n3006 data test:diagnostic\n3006 data test:diagnostic\n3006 data test:diagnostic\n3006 data test:summary\n3007 end undefined\n3007 close undefined\n*/\n\n```\n\nAnd if we were to emit a \"beforeExit\" event:\n\n```javascript\nsetTimeout(() => {\n  console.log('************* beforeExit')\n  process.emit('beforeExit')\n}, 1500)\n\n/*\n4 data test:enqueue\n5 data test:dequeue\n5 data test:enqueue\n6 data test:complete\n6 data test:start\n6 data test:pass\n6 data test:dequeue\n6 data test:complete\n6 data test:start\n6 data test:fail\n************* beforeExit\n1504 data test:plan\n1504 data test:diagnostic\n1504 data test:diagnostic\n1504 data test:diagnostic\n1504 data test:diagnostic\n1504 data test:diagnostic\n1504 data test:diagnostic\n1504 data test:diagnostic\n1504 data test:diagnostic\n1504 data test:summary\n1504 end undefined\n1505 close undefined\n************* t=3000\n*/\n```\n\n### How often does it reproduce? Is there a required condition?\n\n100% reproduceable.\n\n### What is the expected behavior? Why is that the expected behavior?\n\ntest runner should end after all planned tests are complete.\n\nOR\n\nit should allow me to explicitly declare my test plan so it knows after the Nth test that no more tests are gonig to be enqueued.\n\n### What do you see instead?\n\ntest runner waits for the \"beforeExit\" event before it terminates.\n\n### Additional information\n\n_No response_","author":{"url":"https://github.com/aecepoglu","@type":"Person","name":"aecepoglu"},"datePublished":"2025-02-28T10:07:35Z","url":"https://github.com/nodejs/node/issues/57234"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:884639c5-7e67-7a4c-27f9-3079a638b62f
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB584:301095:7413B9:9D8A2C:6AED2BB8
html-safe-nonce2ef8ac16199c69fd309c3125f30dc32d6109881d8890123d656898fc177abb15
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNTg0OjMwMTA5NTo3NDEzQjk6OUQ4QTJDOjZBRUQyQkI4IiwidmlzaXRvcl9pZCI6IjkyMDkyNzQ4MDkyMjY5NjM4OTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacfea709c4ac0017432afa05f4bf17ad8bba850f8e178e3db75ac12b778b4b1c8f
hovercard-subject-tagissue:2886738663
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/57234/issue_layout
twitter:imagehttps://opengraph.githubassets.com/1058f47cb6433b67c431afaaf9ed2090c237f57f4deb3e9bc55eda4dc9a38ffd/nodejs/node/issues/57234
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/1058f47cb6433b67c431afaaf9ed2090c237f57f4deb3e9bc55eda4dc9a38ffd/nodejs/node/issues/57234
og:image:altVersion 23.4 Platform Linux minitower 6.12.9-arch1-1 #1 SMP PREEMPT_DYNAMIC Fri, 10 Jan 2025 00:39:41 +0000 x86_64 GNU/Linux Subsystem node:test What steps will reproduce the bug? const {run} = req...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameaecepoglu
hostnamegithub.com
expected-hostnamegithub.com
None9d95365dda0576efe9b71f45807595e396bd0ca9286fba5367a05048e6ddf8f2
turbo-cache-controlno-preview
go-importgithub.com/nodejs/node git https://github.com/nodejs/node.git
octolytics-dimension-user_id9950313
octolytics-dimension-user_loginnodejs
octolytics-dimension-repository_id27193779
octolytics-dimension-repository_nwonodejs/node
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id27193779
octolytics-dimension-repository_network_root_nwonodejs/node
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release98b41fa4b5635ceb45a4c54320fced73817ff290
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/nodejs/node/issues/57234#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F57234
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F57234
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=nodejs%2Fnode
Reloadhttps://github.com/nodejs/node/issues/57234
Reloadhttps://github.com/nodejs/node/issues/57234
Reloadhttps://github.com/nodejs/node/issues/57234
nodejshttps://github.com/nodejs
nodehttps://github.com/nodejs/node
Codehttps://github.com/nodejs/node
Issues656 (656)https://github.com/nodejs/node/issues
Pull requests666 (666)https://github.com/nodejs/node/pulls
Actionshttps://github.com/nodejs/node/actions
Projectshttps://github.com/nodejs/node/projects
Security and qualityhttps://github.com/nodejs/node/security
Insightshttps://github.com/nodejs/node/pulse
https://github.com/nodejs/node
New issuehttps://github.com/login?return_to=https://github.com/nodejs/node/issues/57234
New issuehttps://github.com/login?return_to=https://github.com/nodejs/node/issues/57234
node:test run() w/ isolation=none waits for beforeExithttps://github.com/nodejs/node/issues/57234#top
staleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22stale%22
test_runnerIssues and PRs related to the test runner subsystem.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22test_runner%22
https://github.com/aecepoglu
aecepogluhttps://github.com/aecepoglu
on Feb 28, 2025https://github.com/nodejs/node/issues/57234#issue-2886738663
aecepogluhttps://github.com/aecepoglu
on Feb 28, 2025https://github.com/nodejs/node/issues/57234#event-16510064156
pmarchinihttps://github.com/pmarchini
test_runnerIssues and PRs related to the test runner subsystem.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22test_runner%22
on Feb 28, 2025https://github.com/nodejs/node/issues/57234#event-16519040028
https://github.com/pmarchini
pmarchinihttps://github.com/pmarchini
on Feb 28, 2025https://github.com/nodejs/node/issues/57234#issuecomment-2691719391
@aecepogluhttps://github.com/aecepoglu
https://github.com/aecepoglu
aecepogluhttps://github.com/aecepoglu
on Mar 1, 2025https://github.com/nodejs/node/issues/57234#issuecomment-2691945822
@aecepogluhttps://github.com/aecepoglu
https://github.com/pmarchini
pmarchinihttps://github.com/pmarchini
on Mar 1, 2025https://github.com/nodejs/node/issues/57234#issuecomment-2692055196
https://github.com/aecepoglu
aecepogluhttps://github.com/aecepoglu
on Mar 1, 2025https://github.com/nodejs/node/issues/57234#issuecomment-2692446122
https://github.com/cjihrig
cjihrighttps://github.com/cjihrig
on Mar 5, 2025https://github.com/nodejs/node/issues/57234#issuecomment-2701620609
detects when all previously known tests have finishedhttps://github.com/nodejs/node/blob/755e4603fd1679de72d250514ea5096b272ae8d6/lib/internal/test_runner/test.js#L1276-L1283
https://github.com/pmarchini
pmarchinihttps://github.com/pmarchini
on Mar 5, 2025https://github.com/nodejs/node/issues/57234#issuecomment-2701769539
detects when all previously known tests have finishedhttps://github.com/nodejs/node/blob/755e4603fd1679de72d250514ea5096b272ae8d6/lib/internal/test_runner/test.js#L1276-L1283
https://github.com/aecepoglu
aecepogluhttps://github.com/aecepoglu
on Mar 11, 2025https://github.com/nodejs/node/issues/57234#issuecomment-2714533722
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
on Apr 20, 2026https://github.com/nodejs/node/issues/57234#issuecomment-4277988244
GitHub Actionshttps://help.github.com/en/actions
github-actionshttps://github.com/apps/github-actions
staleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22stale%22
on Apr 20, 2026https://github.com/nodejs/node/issues/57234#event-24662583961
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
on May 21, 2026https://github.com/nodejs/node/issues/57234#issuecomment-4504056477
GitHub Actionshttps://help.github.com/en/actions
github-actionshttps://github.com/apps/github-actions
not plannedhttps://github.com/nodejs/node/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Anot-planned
on May 21, 2026https://github.com/nodejs/node/issues/57234#event-25783885785
Sign up for freehttps://github.com/signup?return_to=https://github.com/nodejs/node/issues/57234
Sign in to commenthttps://github.com/login?return_to=https://github.com/nodejs/node/issues/57234
staleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22stale%22
test_runnerIssues and PRs related to the test runner subsystem.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22test_runner%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.