Title: For test file with syntax error, no "file" field for `test:enqueue` event with `isolation: "none"` · Issue #61565 · nodejs/node · GitHub
Open Graph Title: For test file with syntax error, no "file" field for `test:enqueue` event with `isolation: "none"` · Issue #61565 · nodejs/node
X Title: For test file with syntax error, no "file" field for `test:enqueue` event with `isolation: "none"` · Issue #61565 · nodejs/node
Description: Version v24.13.0 Platform Linux ichor 6.14.0-37-generic #37~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 20 10:25:38 UTC 2 x86_64 x86_64 x86_64 GNU/Linux Subsystem test What steps will reproduce the bug? Minimal reproduction repo: https://...
Open Graph Description: Version v24.13.0 Platform Linux ichor 6.14.0-37-generic #37~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 20 10:25:38 UTC 2 x86_64 x86_64 x86_64 GNU/Linux Subsystem test What steps will reproduce the ...
X Description: Version v24.13.0 Platform Linux ichor 6.14.0-37-generic #37~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 20 10:25:38 UTC 2 x86_64 x86_64 x86_64 GNU/Linux Subsystem test What steps will reproduce the ...
Opengraph URL: https://github.com/nodejs/node/issues/61565
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"For test file with syntax error, no \"file\" field for `test:enqueue` event with `isolation: \"none\"`","articleBody":"### Version\n\nv24.13.0\n\n### Platform\n\n```text\nLinux ichor 6.14.0-37-generic #37~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 20 10:25:38 UTC 2 x86_64 x86_64 x86_64 GNU/Linux\n```\n\n### Subsystem\n\ntest\n\n### What steps will reproduce the bug?\n\nMinimal reproduction repo: https://github.com/hamptonsmith/isolation-test-enqueue-file-field-mre\n\nCreate a test file with a syntax error:\n\n```\nimport { test } from 'node:test';\n\ntest('a test!', () =\u003e {\n if true {\n // syntax error\n }\n});\n```\n\nRun tests like:\n\n```\nrun({\n files: ['./test-file.mjs'],\n isolation: 'none'\n})\n```\n\n### How often does it reproduce? Is there a required condition?\n\nConsistently reproducible. See minimal reproduction repo: https://github.com/hamptonsmith/isolation-test-enqueue-file-field-mre\n\n### What is the expected behavior? Why is that the expected behavior?\n\nAccording to [the docs](https://nodejs.org/api/test.html#event-testenqueue), the `test:enqueue` event should have a field `file` that contains the test filename. `undefined` is permitted only if \"test was run through the REPL\", which it was not.\n\n### What do you see instead?\n\n`test:enqueue` event has no `file` field\n\n### Additional information\n\nFound this when the downstream [node-test-reporter](https://github.com/integreat-io/node-test-reporter/blob/main/lib/index.js#L66) library failed to produce useful error output for a syntax error in a test file.","author":{"url":"https://github.com/hamptonsmith","@type":"Person","name":"hamptonsmith"},"datePublished":"2026-01-28T16:05:24.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/61565/node/issues/61565"}
| 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:3bccc5bb-247c-a335-0178-1951c69b0ff7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9310:2279D0:6E3DED:97182C:6A4DD1DD |
| html-safe-nonce | 6baf7f7a4a18b3e4d251bf0af6e85cc00e0f6e43b8529aa04dc6243350429e84 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MzEwOjIyNzlEMDo2RTNERUQ6OTcxODJDOjZBNEREMUREIiwidmlzaXRvcl9pZCI6IjYyOTUxMTA1OTgwNDU1ODU4ODUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 10f5afbc7e24dcef320cdc5c455952aa317790dce925bb4cbf35cbcaf7bff34b |
| hovercard-subject-tag | issue:3866176222 |
| 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/61565/issue_layout |
| twitter:image | https://opengraph.githubassets.com/43b26ff8a4c33be63d83a81be1044054449bf3d2d9ef590d81ac285070f97bdf/nodejs/node/issues/61565 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/43b26ff8a4c33be63d83a81be1044054449bf3d2d9ef590d81ac285070f97bdf/nodejs/node/issues/61565 |
| og:image:alt | Version v24.13.0 Platform Linux ichor 6.14.0-37-generic #37~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 20 10:25:38 UTC 2 x86_64 x86_64 x86_64 GNU/Linux Subsystem test What steps will reproduce the ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | hamptonsmith |
| hostname | github.com |
| expected-hostname | github.com |
| None | 06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33 |
| 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 | 1d344bdb7547fe6bca17a59bb2b8aac3dc9532a0 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width