node -v: v11.10.0npm -v: 6.7.0npm ls jest: └── [email protected] npm run test or node_modules/.bin/jest) npm testWhen using syntax test.each(table)(name, fn, timeout) described here test status circles show the status of tests and failed test error appears in-line.
When using syntax test.each(table)(name, fn, timeout) test status circles are not shown and test errors are not displayed inline.
If applying parametrization to describe with describe.each, test status information seems to be showed correctly.
In the image below all three tests should have been marked as failed. As it can be seen, the second does not show any test status information and the third (workaround) seems to work. Since I don't want to wrap all my separate tests into describe.each workaround is not that useful in my case.

Was just looking for the same thing. it.each/test.each does not work, but it would be really helpful if it would. To use describe.each instead is not an applicable workaround for me as it defeats the purpose of having several things to test for one describe.
Upvote
Upvote and bump 👍
upvote
for people who are interested in this issue, please try v4-alpha that should have addressed this issue.
@connectdotz , I'm using vscode-jest-4.0.0-alpha.2.
it seams when there is only one it.each per describe the status is displayed correctly, when two or more the status is ?.
node -v: v14.15.4npm -v: 6.14.11npm ls jest or npm ls react-scripts (if you haven’t ejected): [email protected] not customizednot customized{
"preset": "ts-jest",
"testEnvironment": "node",
"collectCoverage": true,
"collectCoverageFrom": [
"src/**/*.ts"
]
}



describe('id', () => {
it.each([
[true],
[false],
])('returns %s for %s', value => {
expect(value).toBe(value);
});
});
describe('not', () => {
it.each([
[true],
[false],
])('%s not equal to reverse', value => {
expect(!value).not.toBe(value);
});
});
indeed we have some gaps to cover... see #649
v4.0.0-alpha.3 is released today. The main change is to support the parameterized tests. Feel free to give this release a try and open new issues if needed...
v4.0.0-alpha.3 is released today. The main change is to support the parameterized tests. Feel free to give this release a try and open new issues if needed...
I will try it today some later. Thanks a lot for a quick fix!
@connectdotz , hey
Now correctly works only the first in the file it.each:

And I guess the number of test-cases is displayed for whole file.
@DScheglov I tried your snippet above and all seems to be fine:

Something else is at play here... which jest version your project is on? I should have mentioned that for parameterized tests to be properly reported, you need to have jest version >= 26.5.0 (see migration notes for alpha.3 release). Otherwise, can you post the relevant debug message from the developer console or OUTPUT channel?
@DScheglov I tried your snippet above and all seems to be fine:
Something else is at play here... which jest version your project is on? I should have mentioned that for parameterized tests to be properly reported, you need to have jest version >= 26.5.0 (see migration notes for alpha.3 release). Otherwise, can you post the relevant debug message from the developer console or OUTPUT channel?
Hey, @connectdotz thanks. I had 25.x.x version of jest. Upgrading it to the 26.6.3 helped. Now it works well.
Thank you for your help.
Most helpful comment
Upvote