Skip to content

Commit

Permalink
fix: hide coverage if no covered files
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed May 9, 2021
1 parent 6f8bf13 commit 140c517
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ui/blocks/src/TestsCoverage/BaseTestsCoverage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,10 @@ export const BaseTestsCoverage: FC<BaseTestsCoverageProps> = ({
: undefined,
[component?.jest?.coverage],
);
if (!component?.jest) {
if (
!component?.jest?.coverage ||
!Object.keys(component.jest.coverage).length
) {
return null;
}
return (
Expand Down

0 comments on commit 140c517

Please sign in to comment.