Repository navigation
Testrunner glob parsing seems to be broken #43675
Copy link
Copy link
Closed
Labels
cliIssues and PRs related to the Node.js command-line interface.Issues and PRs related to the Node.js command-line interface.test_runnerIssues and PRs related to the test runner subsystem.Issues and PRs related to the test runner subsystem.
Description
Activity
- addedcliIssues and PRs related to the Node.js command-line interface.Issues and PRs related to the Node.js command-line interface.test_runnerIssues and PRs related to the test runner subsystem.Issues and PRs related to the test runner subsystem.
on Jul 4, 2022 Hi @jtuchel,
this is not broken - it was never implemented,
however, it was discussed here #40954 (comment)
@cjihrig were there any conclusions regarding this discussion?Reacted by Tony GorezThere was no conclusion that I'm aware of. I think we should implement a CLI flag for this functionality based on regular expressions instead of globs. If/when Node adds glob support, we could switch over to using that (or stick with regular expressions if they are working well).
Reacted by Moshe Atlow, Leonardo Pliskieviski and Fernando PasikReacted by Golo Roden and Juan José- added a commit that references this issue
on Sep 5, 2022 - added a commit that references this issue
on Nov 23, 2022 - added a commit that references this issue
on Dec 7, 2022 - added 2 commits that reference this issue
on Jan 3, 2023 - added a commit that references this issue
on May 22, 2026
Metadata
Metadata
Assignees
Labels
cliIssues and PRs related to the Node.js command-line interface.Issues and PRs related to the Node.js command-line interface.test_runnerIssues and PRs related to the test runner subsystem.Issues and PRs related to the test runner subsystem.
Version
18.4.0
Platform
Linux pop-os 5.17.15-76051715-generic #202206141358
165591911622.04~1db9e34 SMP PREEMPT Wed Jun 22 19 x86_64 x86_64 x86_64 GNU/LinuxSubsystem
No response
What steps will reproduce the bug?
npm init -y"test": "node --test ./myTestDir/**/*Tests.js"pickedUpTests.js
ignoredTests.js
npm run testonly pickedUpTests runHow often does it reproduce? Is there a required condition?
Always
What is the expected behavior?
It should run all tests ( failing ones too )
What do you see instead?
It seems the glob parsing is broken so it only runs tests on a specific directory depth
Additional information
A temporary workaround for this would be the glob
./myTestDir/**/**/*Tests.js