Skip to content

Commit 3c12c98

Browse files
committed
test: ignore coverage on context helpers
1 parent c82a122 commit 3c12c98

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/rules/utils/misc.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ export const getFirstMatcherArg = (
230230
return followTypeAssertionChain(firstArg);
231231
};
232232

233+
/* istanbul ignore next */
233234
export const getFilename = (
234235
context: TSESLint.RuleContext<string, unknown[]>,
235236
) => {
@@ -238,6 +239,7 @@ export const getFilename = (
238239
: context.getFilename();
239240
};
240241

242+
/* istanbul ignore next */
241243
export const getSourceCode = (
242244
context: TSESLint.RuleContext<string, unknown[]>,
243245
) => {
@@ -246,6 +248,7 @@ export const getSourceCode = (
246248
: context.getSourceCode();
247249
};
248250

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

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

279+
/* istanbul ignore next */
275280
export const getDeclaredVariables = (
276281
context: TSESLint.RuleContext<string, unknown[]>,
277282
node: TSESTree.Node,

0 commit comments

Comments
 (0)