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
[BUG] Entire testing file triggered prior rather than individual test when running tests using it.each(...) #1144
Comments
@YasiTL, this might sound strange, but this is actually the expected behavior. Let me explain why this happens and how people typically mitigate this issue: Why can't I run
|
Describe the bug
When attempting to run any test using a test.each() via the sidebar or the green play button by a test, the entire testing file runs instead of that specific test. Immediately forcing a stop will then expand all the tests, including each of the
each
cases, and you can then individually run the tests.To Reproduce
Steps to reproduce the behavior:
it.each(...)
it.each(...)
are displayed as grey, open circles. (Image below)it.each()
. Notice that the entire test file runs, instead of the expected behavior of only the test usingit.each(...)
running, and expanding out the generated test cases. (Related GIF below)it.each()
.Note: A sample repo will help us identify the bug much faster. 🙏
Expected behavior
After edits of a test file, users should be able to run tests that use
it.each(...)
without having to run the entire test file. Tests that useit.each(...)
should be picked up by the extension and labeled, and run individually.Screenshots
Environment (please complete the following information):
node -v
: [v20.10.0]npm -v
oryarn --version
: [npm 10.2.3]Prerequisite
npx jest int
ornpx jest unit
The fastest (and the most fun) way to resolve the issue is to submit a pull request yourself. If you are interested, please check out the contribution guide, we look forward to seeing your PR...
The text was updated successfully, but these errors were encountered: