Skip to content

Commit cad34a9

Browse files
committed
Ignore code cov Angular ESLint v13 fallback logic
1 parent c5b0625 commit cad34a9

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

src/lib/external/ensure-template-parser.ts

+10-3
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,24 @@ export function ensureTemplateParser(
3333
try {
3434
utils.ensureTemplateParser(context);
3535
} catch {
36+
/* istanbul ignore next -- fallback for Angular ESLint v13 */
3637
ensureTemplateParserFallback(context);
3738
}
3839
})
39-
.catch(() => {
40-
ensureTemplateParserFallback(context);
41-
});
40+
.catch(
41+
/* istanbul ignore next -- fallback for Angular ESLint v13 */
42+
() => {
43+
/* istanbul ignore next -- fallback for Angular ESLint v13 */
44+
ensureTemplateParserFallback(context);
45+
},
46+
);
4247
} catch {
48+
/* istanbul ignore next -- fallback for Angular ESLint v13 */
4349
ensureTemplateParserFallback(context);
4450
}
4551
}
4652

53+
/* istanbul ignore next -- fallback for Angular ESLint v13 */
4754
function ensureTemplateParserFallback(
4855
context: Readonly<TSESLint.RuleContext<string, ReadonlyArray<unknown>>>,
4956
): void {

0 commit comments

Comments
 (0)