-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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.only should be scoped to its describe #9014
Comments
This is certainly not a bug, but rather a feature request. We can discuss if it makes sense to scope |
@thymikee If I'm reading @SimenB's example correctly, the "all non-auth tests" are intended to execute whether the |
I'm pretty sure he meant separate files instead of multiple describes. It's just an example code, don't expect it to be valid. |
This issue is stale because it has been open for 1 year with no activity. Remove stale label or comment or this will be closed in 14 days. |
Agree that a A A |
I don't think we should do this. |
This issue is stale because it has been open for 1 year with no activity. Remove stale label or comment or this will be closed in 30 days. |
This issue was closed because it has been stalled for 30 days with no activity. Please open a new issue if the issue is still relevant, linking to this one. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
🐛 Bug Report
In a
describe
, I have a bunch of tests that should be executed only when a certain condition is fulfilled. One official solution is to usetest.only
.The problem is that if the condition is truthy, no other test in the entire test file, that is, in different
describe
s, gets executed. Instead, I seePending test 'xxx'
for every single test in all describes.To Reproduce
Expected behavior
Only the tests in the
describe
block containing thetest.only
call should be skipped. Otherwise, test.only is a kill switch for the entire test file.Link to repl or repo (highly encouraged)`
https://repl.it/repls/SillyPastDictionary
The text was updated successfully, but these errors were encountered: