Skip to content

Commit

Permalink
test: ignore coverage on context helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Jan 4, 2024
1 parent 9ef0bb6 commit b8684f4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/rules/utils/misc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ export const getFirstMatcherArg = (
return followTypeAssertionChain(firstArg);
};

/* istanbul ignore next */
export const getFilename = (
context: TSESLint.RuleContext<string, unknown[]>,
) => {
Expand All @@ -238,6 +239,7 @@ export const getFilename = (
: context.getFilename();
};

/* istanbul ignore next */
export const getSourceCode = (
context: TSESLint.RuleContext<string, unknown[]>,
) => {
Expand All @@ -246,6 +248,7 @@ export const getSourceCode = (
: context.getSourceCode();
};

/* istanbul ignore next */
export const getScope = (
context: TSESLint.RuleContext<string, unknown[]>,
node: TSESTree.Node,
Expand All @@ -259,6 +262,7 @@ export const getScope = (
return context.getScope();
};

/* istanbul ignore next */
export const getAncestors = (
context: TSESLint.RuleContext<string, unknown[]>,
node: TSESTree.Node,
Expand All @@ -272,6 +276,7 @@ export const getAncestors = (
return context.getAncestors();
};

/* istanbul ignore next */
export const getDeclaredVariables = (
context: TSESLint.RuleContext<string, unknown[]>,
node: TSESTree.Node,
Expand Down

0 comments on commit b8684f4

Please sign in to comment.