-
-
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
Tests marked with each are not added in total count #9506
Comments
It's because the API is used wrong. @@ -3,7 +3,7 @@ test.each(
[1, 1, 2],
[1, 2, 3],
[2, 1, 3]
- ],
+ ])(
"returns the result of adding %d to %d",
async (a, b, expected) => {
expect(a + b).toBe(expected); We should probably detect that |
Hi, I think we can move the call to Regards |
Sounds like a great start! A PR with tests would be wonderful 👍 |
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
Tests within each are not considered in total test count. If a test contains on
test.each
the test file is not being run andYour test suite must contain at least one test.
is thrownNoticed this in #9326
cc\ @mattphillips @SimenB
To Reproduce
Steps to reproduce the behavior:
In the following total test count is considered as zero
Expected behavior
Tests within each should be considered in the total test count
Link to repl or repo (highly encouraged)
https://github.com/M4rk9696/each-test-count-bug
envinfo
The text was updated successfully, but these errors were encountered: