Open dvirtz opened 1 month ago
This is a doc issue IMO. To do what you want with only tests, you'd have to do something like this:
node --test-name-pattern="test 1" --test-name-pattern="some test" --test-skip-pattern="other" test.mjs
The reason is that the test runner eagerly evaluates all suites to apply the filtering. Tests are not eagerly evaluated because that means running the test, which is the opposite of what we want to happen here. In the example here, "test 1 some test" does not match any top level tests, so "test 1" is never executed and the "some test" test is never even created.
Version
v22.5.1
Platform
Subsystem
test
What steps will reproduce the bug?
How often does it reproduce? Is there a required condition?
always
What is the expected behavior? Why is that the expected behavior?
According to the documentation
Nothing says it's limited to
describe
.What do you see instead?
no test runs
Additional information
No response