Skip to content

Commit

Permalink
fix: circus testResults concat only when type DescribeBlock
Browse files Browse the repository at this point in the history
  • Loading branch information
sauravhiremath committed Jun 23, 2020
1 parent 295f7fe commit 0937cf3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/jest-circus/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,13 @@ const makeTestResults = (
);

for (const child of describeBlock.children) {
testResults = testResults.concat(makeTestResults(child));
switch (child.type) {
case 'describeBlock':
testResults = testResults.concat(makeTestResults(child));
break;
case 'test':
break;
}
}

return testResults;
Expand Down

0 comments on commit 0937cf3

Please sign in to comment.