Skip to content

Commit 7196d93

Browse files
committed
chore: add comments
1 parent d7fc095 commit 7196d93

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/utils.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,9 @@ export class RuleTester extends TSESLint.RuleTester {
181181
super(option)
182182
}
183183

184+
/**
185+
* Since we can't override the original `run` method, we have to create a new one that accepts our custom rule module with custom meta.
186+
*/
184187
run$<MessageIds extends string, Options extends Readonly<unknown[]>>(
185188
ruleName: string,
186189
rule: RuleModuleWithCustomMeta<MessageIds, Options>,

0 commit comments

Comments
 (0)