Skip to content

Commit

Permalink
Ignore code cov Angular ESLint v13 fallback logic
Browse files Browse the repository at this point in the history
  • Loading branch information
jerone committed Apr 17, 2024
1 parent c5b0625 commit cad34a9
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/lib/external/ensure-template-parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,24 @@ export function ensureTemplateParser(
try {
utils.ensureTemplateParser(context);
} catch {
/* istanbul ignore next -- fallback for Angular ESLint v13 */
ensureTemplateParserFallback(context);
}
})
.catch(() => {
ensureTemplateParserFallback(context);
});
.catch(
/* istanbul ignore next -- fallback for Angular ESLint v13 */
() => {
/* istanbul ignore next -- fallback for Angular ESLint v13 */
ensureTemplateParserFallback(context);
},
);
} catch {
/* istanbul ignore next -- fallback for Angular ESLint v13 */
ensureTemplateParserFallback(context);
}
}

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

0 comments on commit cad34a9

Please sign in to comment.