Skip to content

When using test() inside describe(), trying to run a single test results in the whole describe() being ran #49

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

Closed
9600bauds opened this issue Jul 19, 2024 · 4 comments

Comments

@9600bauds
Copy link

Let's say I have three different describe blocks, like this:
image
And I click the "Run Test" button next to test C3 (the 3rd test of describe block C).

What I expected to happen:
All tests except C3 are skipped

What actually happened:
image
All tests inside describe block C are ran.
This is annoying because tests C1 and C2 might be slow or produce testing messages.
Furthermore, the other describe blocks are shown as passing, even though the tests inside them are skipped, which is confusing but not that bad.

@connor4312
Copy link
Owner

Thanks for the issue, what version of Node.js are you using?

@9600bauds
Copy link
Author

Apologies for not including that info in the OP, I am running node v20.11.0

@connor4312
Copy link
Owner

Please update to Node 22. Versions below that did not have very good filtering logic nodejs/node#46728.

@9600bauds
Copy link
Author

Thank you, that does work a lot better. Good luck!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants