René's URL Explorer Experiment


Title: Test runner location output not source-mapped · Issue #51392 · nodejs/node · GitHub

Open Graph Title: Test runner location output not source-mapped · Issue #51392 · nodejs/node

X Title: Test runner location output not source-mapped · Issue #51392 · nodejs/node

Description: Version v21.3.0 Platform Darwin wavel.local 23.2.0 Darwin Kernel Version 23.2.0: Wed Nov 15 21:53:34 PST 2023; root:xnu-10002.61.3~2/RELEASE_ARM64_T8103 arm64 Subsystem node:test What steps will reproduce the bug? I have checked in a sim...

Open Graph Description: Version v21.3.0 Platform Darwin wavel.local 23.2.0 Darwin Kernel Version 23.2.0: Wed Nov 15 21:53:34 PST 2023; root:xnu-10002.61.3~2/RELEASE_ARM64_T8103 arm64 Subsystem node:test What steps will re...

X Description: Version v21.3.0 Platform Darwin wavel.local 23.2.0 Darwin Kernel Version 23.2.0: Wed Nov 15 21:53:34 PST 2023; root:xnu-10002.61.3~2/RELEASE_ARM64_T8103 arm64 Subsystem node:test What steps will re...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Test runner location output not source-mapped","articleBody":"### Version\n\nv21.3.0\n\n### Platform\n\nDarwin wavel.local 23.2.0 Darwin Kernel Version 23.2.0: Wed Nov 15 21:53:34 PST 2023; root:xnu-10002.61.3~2/RELEASE_ARM64_T8103 arm64\n\n### Subsystem\n\nnode:test\n\n### What steps will reproduce the bug?\n\nI have checked in a simple example at\r\nhttps://github.com/malthe/node/tree/source-map-test-issue.\r\n\r\nClone the repo and run the following commands.\r\n```bash\r\n$ npm i -D ts-node\r\n$ node --loader ts-node/esm --enable-source-maps test.mts\r\n```\n\n### How often does it reproduce? Is there a required condition?\n\n_No response_\n\n### What is the expected behavior? Why is that the expected behavior?\n\nIn the first line in the output, starting with \"test at\", notice that the location is being reported as \"3:1\".\r\n\r\nBut there is nothing on this line, it's empty. It should be \"4:1\". The \"test at\" location is not mapped, even though `--enable-source-maps` is given.\r\n\r\nIn the stack trace provided for the assertion failure, locations are _correct_ (mapped).\r\n\r\nNote that if this option is not used at all, then both locations are wrong (i.e., unmapped).\n\n### What do you see instead?\n\n```\r\n...\r\n✖ failing tests:\r\n\r\ntest at file:/.../test.mts:3:1\r\n✖ hello (1.201292ms)\r\n  AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:\r\n  \r\n  1 !== 2\r\n  \r\n      at TestContext.\u003canonymous> (file:///.../test.mts:5:10)\r\n      at Test.runInAsyncScope (node:async_hooks:206:9)\r\n      at Test.run (node:internal/test_runner/test:631:25)\r\n      at Test.start (node:internal/test_runner/test:542:17)\r\n      at startSubtest (node:internal/test_runner/harness:216:17) {\r\n    generatedMessage: true,\r\n    code: 'ERR_ASSERTION',\r\n    actual: 1,\r\n    expected: 2,\r\n    operator: 'strictEqual'\r\n  }\r\n```\n\n### Additional information\n\n_No response_","author":{"url":"https://github.com/malthe","@type":"Person","name":"malthe"},"datePublished":"2024-01-06T11:54:46Z","url":"https://github.com/nodejs/node/issues/51392"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:352a40b3-8d15-4968-9461-98403bb21dd1
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB914:AC3D5:2FE3527:3F59C50:6B035427
html-safe-nonce4f1d9a805f640c3583af0a6fbf1a5cf5611cc5865a5408b27f076fa1d36a3f43
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOTE0OkFDM0Q1OjJGRTM1Mjc6M0Y1OUM1MDo2QjAzNTQyNyIsInZpc2l0b3JfaWQiOiIyMTUwODM2Mzg3MTY1OTgzNzgzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacf7a98a7fd67e01851aa02b6ee30b9890aa95559337733b473aeaa0e3fdb9623b
hovercard-subject-tagissue:2068570502
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/51392/issue_layout
twitter:imagehttps://opengraph.githubassets.com/d3b5d872b6b8770cfb72ef78db1b39398adda68aae54e99103dc69b066998e0c/nodejs/node/issues/51392
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d3b5d872b6b8770cfb72ef78db1b39398adda68aae54e99103dc69b066998e0c/nodejs/node/issues/51392
og:image:altVersion v21.3.0 Platform Darwin wavel.local 23.2.0 Darwin Kernel Version 23.2.0: Wed Nov 15 21:53:34 PST 2023; root:xnu-10002.61.3~2/RELEASE_ARM64_T8103 arm64 Subsystem node:test What steps will re...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemalthe
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
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
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/nodejs/node/issues/51392#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F51392
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%2F51392
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/51392
Reloadhttps://github.com/nodejs/node/issues/51392
Reloadhttps://github.com/nodejs/node/issues/51392
nodejshttps://github.com/nodejs
nodehttps://github.com/nodejs/node
Codehttps://github.com/nodejs/node
Issues637 (637)https://github.com/nodejs/node/issues
Pull requests667 (667)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/insights
https://github.com/nodejs/node
New issuehttps://github.com/login?return_to=https://github.com/nodejs/node/issues/51392
New issuehttps://github.com/login?return_to=https://github.com/nodejs/node/issues/51392
Test runner location output not source-mappedhttps://github.com/nodejs/node/issues/51392#top
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/malthe
malthehttps://github.com/malthe
on Jan 6, 2024https://github.com/nodejs/node/issues/51392#issue-2068570502
https://github.com/malthe/node/tree/source-map-test-issuehttps://github.com/malthe/node/tree/source-map-test-issue
https://github.com/MoLow
MoLowhttps://github.com/MoLow
on Jan 6, 2024https://github.com/nodejs/node/issues/51392#issuecomment-1879834485
https://github.com/malthe
malthehttps://github.com/malthe
on Jan 6, 2024https://github.com/nodejs/node/issues/51392#issuecomment-1879856209
@MoLowhttps://github.com/MoLow
mertcanaltinhttps://github.com/mertcanaltin
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 Jan 14, 2024https://github.com/nodejs/node/issues/51392#event-11481734805
cjihrighttps://github.com/cjihrig
on Mar 8, 2024https://github.com/nodejs/node/issues/51392#event-12050304377
test_runner: support source mapped test locationshttps://github.com/cjihrig/node/commit/3e39c3753a125850bd1d25642a5895efd5f6fc1a
3e39c37https://github.com/cjihrig/node/commit/3e39c3753a125850bd1d25642a5895efd5f6fc1a
nodejs-github-bothttps://github.com/nodejs-github-bot
completedhttps://github.com/nodejs/node/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
6d625fehttps://github.com/nodejs/node/commit/6d625fe616d2bf25469672354996c6771b5f362a
on Mar 11, 2024https://github.com/nodejs/node/issues/51392#event-12070156886
nodejs-github-bothttps://github.com/nodejs-github-bot
on Mar 11, 2024https://github.com/nodejs/node/issues/51392#event-12070157110
test_runner: use paths for test locationshttps://github.com/nodejs/node/commit/328642bbb98d6d581f06e5e67b6f2d045e719bd4
328642bhttps://github.com/nodejs/node/commit/328642bbb98d6d581f06e5e67b6f2d045e719bd4
pullhttps://github.com/apps/pull
on Mar 11, 2024https://github.com/nodejs/node/issues/51392#event-12071060485
test_runner: support source mapped test locationshttps://github.com/SimenB/node/commit/6d625fe616d2bf25469672354996c6771b5f362a
6d625fehttps://github.com/SimenB/node/commit/6d625fe616d2bf25469672354996c6771b5f362a
marco-ippolitohttps://github.com/marco-ippolito
on May 2, 2024https://github.com/nodejs/node/issues/51392#event-12680130802
test_runner: support source mapped test locationshttps://github.com/nodejs/node/commit/089d2ae7130532bcbdbd46d80b72acc2160c31e8
089d2aehttps://github.com/nodejs/node/commit/089d2ae7130532bcbdbd46d80b72acc2160c31e8
MoLowhttps://github.com/MoLow
on May 7, 2024https://github.com/nodejs/node/issues/51392#event-12725500005
test_runner: support source mapped test locationshttps://github.com/MoLow/node/commit/bdeaafd5cdc6b8674941c3244eccb747574214cf
bdeaafdhttps://github.com/MoLow/node/commit/bdeaafd5cdc6b8674941c3244eccb747574214cf
test_runner: use paths for test locationshttps://github.com/MoLow/node/commit/2eac41318bbdec715e980cc65c54c23f7ec8e989
2eac413https://github.com/MoLow/node/commit/2eac41318bbdec715e980cc65c54c23f7ec8e989
marco-ippolitohttps://github.com/marco-ippolito
on May 17, 2024https://github.com/nodejs/node/issues/51392#event-12849380199
test_runner: support source mapped test locationshttps://github.com/nodejs/node/commit/743281ab258dc2c8388cc459d9d4610f9f23e9b7
743281ahttps://github.com/nodejs/node/commit/743281ab258dc2c8388cc459d9d4610f9f23e9b7
test_runner: use paths for test locationshttps://github.com/nodejs/node/commit/be587e3ae30e311aa770f4420abf01aeb7d336eb
be587e3https://github.com/nodejs/node/commit/be587e3ae30e311aa770f4420abf01aeb7d336eb
https://github.com/fenying
fenyinghttps://github.com/fenying
on Aug 2, 2024https://github.com/nodejs/node/issues/51392#issuecomment-2264524713
Sign up for freehttps://github.com/signup?return_to=https://github.com/nodejs/node/issues/51392
Sign in to commenthttps://github.com/login?return_to=https://github.com/nodejs/node/issues/51392
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

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.