Title: Default behavior of --test-coverage-exclude globbing does NOT apply to "dotfiles" like .mytest.cjs (common globbing oversight) · Issue #63397 · nodejs/node · GitHub
Open Graph Title: Default behavior of --test-coverage-exclude globbing does NOT apply to "dotfiles" like .mytest.cjs (common globbing oversight) · Issue #63397 · nodejs/node
X Title: Default behavior of --test-coverage-exclude globbing does NOT apply to "dotfiles" like .mytest.cjs (common globbing oversight) · Issue #63397 · nodejs/node
Description: Version 24.15.0 Platform macOS Subsystem No response What steps will reproduce the bug? Run --experimental-test-coverage on a repo with test file names in the test directory beginning with a .. They will be INCLUDED in the coverage summa...
Open Graph Description: Version 24.15.0 Platform macOS Subsystem No response What steps will reproduce the bug? Run --experimental-test-coverage on a repo with test file names in the test directory beginning with a .. The...
X Description: Version 24.15.0 Platform macOS Subsystem No response What steps will reproduce the bug? Run --experimental-test-coverage on a repo with test file names in the test directory beginning with a .. The...
Opengraph URL: https://github.com/nodejs/node/issues/63397
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Default behavior of --test-coverage-exclude globbing does NOT apply to \"dotfiles\" like .mytest.cjs (common globbing oversight)","articleBody":"### Version\n\n24.15.0\n\n### Platform\n\n```text\nmacOS\n```\n\n### Subsystem\n\n_No response_\n\n### What steps will reproduce the bug?\n\nRun `--experimental-test-coverage` on a repo with test file names in the `test` directory beginning with a `.`. They will be INCLUDED in the coverage summary report while test files next to them without a leading `.` will not.\n\n### How often does it reproduce? Is there a required condition?\n\n100%\n\n### What is the expected behavior? Why is that the expected behavior?\n\nAll files under `test` should be excluded by default - this is clearly the intent of the Node.js implementation.\n\n### What do you see instead?\n\n\"dotfiles\" are included.\n\n### Additional information\n\nThis can presumably be fixed by setting the `dot` option to `true` in the call to `minimatch` here: \u003chttps://github.com/nodejs/node/blob/v24.x/lib/internal/fs/glob.js#L784-L797>\n\nThe observed (undesirable) behavior is documented by that project here: \u003chttps://github.com/isaacs/minimatch#dot>\n\nThe relevant default globs for Node are found here: \u003chttps://github.com/nodejs/node/blob/v24.x/lib/internal/test_runner/utils.js#L62-L67>\n\nI have confirmed the following produces intended behavior on my machine: `--test-coverage-exclude='test/**/{*,.*}'`.","author":{"url":"https://github.com/DavidAnson","@type":"Person","name":"DavidAnson"},"datePublished":"2026-05-18T01:34:02Z","url":"https://github.com/nodejs/node/issues/63397"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e068fb73-cd95-b91d-7dd8-17013c29e6ca |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CF12:14D25F:46AF4E:5C36B1:6AED2399 |
| html-safe-nonce | caec2bf980c45560f61041c56d36cf19dd411ef938edcbeed0b0f95336d809f5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRjEyOjE0RDI1Rjo0NkFGNEU6NUMzNkIxOjZBRUQyMzk5IiwidmlzaXRvcl9pZCI6IjIxMTI1OTE4NjM3NjIxOTk0NDkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | b180d97474ac3e1a42bb800c15750b0a56176596dca46c3cbdcab61fdf4335d9 |
| hovercard-subject-tag | issue:4465658708 |
| 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/63397/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6c332a98094db535f867ba790c607fbb635d183238fe283b71e0d2e27ad15b8b/nodejs/node/issues/63397 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6c332a98094db535f867ba790c607fbb635d183238fe283b71e0d2e27ad15b8b/nodejs/node/issues/63397 |
| og:image:alt | Version 24.15.0 Platform macOS Subsystem No response What steps will reproduce the bug? Run --experimental-test-coverage on a repo with test file names in the test directory beginning with a .. The... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | DavidAnson |
| hostname | github.com |
| expected-hostname | github.com |
| None | e3e0f7f63e50c6fe879198a93a0a023a648ecc0a5e9bc3b5e033ac57172237e6 |
| 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 | 707a24b346ac8a82878b9c084efaa38a997660cb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width