-
Notifications
You must be signed in to change notification settings - Fork 29.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test runner: not execute the glob pattern of files correctly #52191
Comments
Please put the glob in quotes like so:
(Has to be double quotes, single quotes won't work properly.) Otherwise your shell performs the globbing and not Node.js, which is not portable between different computers and causes problems as you've discovered. This is IMHO a mistake in the Node.js documentation. |
Put in double quotes works for me!! I think that is a bug, because I use Thanks @meyfa ! |
Refs: nodejs#52191 PR-URL: nodejs#52201 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Chemi Atlow <chemi@atlow.co.il> Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Version
v20.11.0
Platform
Darwin 23.4.0 Darwin Kernel Version 23.4.0: Wed Feb 21 21:44:43 PST 2024; root:xnu-10063.101.15~2/RELEASE_ARM64_T6000 arm64
Subsystem
test
What steps will reproduce the bug?
example.zip
Download the zip
How often does it reproduce? Is there a required condition?
This happen every time
What is the expected behavior? Why is that the expected behavior?
I expected to run all tests inside folder
__tests__
that end with.test.js
This is my expectation, because the glob pattern
__tests__/**/*.test.js
need to match with all files inside__tests__
that have the end of name of file with.test.js
References
The documentation of test runner in the site: Link
What do you see instead?
This only run the files that match
*.test.js
and that is only child ofe2e
,integration
andunit
folders!Additional information
(sorry english)
The text was updated successfully, but these errors were encountered: