We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
bail
1 parent 873f92d commit 1369064Copy full SHA for 1369064
1 file changed
packages/core/src/core/stateManager.ts
@@ -63,7 +63,13 @@ export class TestStateManager {
63
getCountOfFailedTests(): number {
64
const testResults: TestResult[] = Array.from(this.runningModules.values())
65
.flatMap(({ results }) => results)
66
- .concat(this.testModules.flatMap((mod) => mod.results));
+ .concat(
67
+ this.testModules.flatMap((mod) =>
68
+ mod.results.length > 0
69
+ ? mod.results
70
+ : [{ status: mod.status } as TestResult],
71
+ ),
72
+ );
73
74
return testResults.filter((t) => t.status === 'fail').length;
75
}
0 commit comments