diff --git a/libs/ng-mocks/src/lib/mock-component/render/generate-template.ts b/libs/ng-mocks/src/lib/mock-component/render/generate-template.ts
index 5ae5e13630..f3ae01ddf0 100644
--- a/libs/ng-mocks/src/lib/mock-component/render/generate-template.ts
+++ b/libs/ng-mocks/src/lib/mock-component/render/generate-template.ts
@@ -8,7 +8,7 @@ const viewChildTemplate = (selector: string, key: string): string => {
const condition = `ngMocksRender_${key}_${selector}`;
return hasControlFlow
? `@if (${condition}) { ${content} }`
- : `${content}`;
+ : /* istanbul ignore next */ `${content}`;
};
const isTemplateRefQuery = (query: Query): boolean => {