Skip to content

Commit d1b5b9e

Browse files
committed
docs(rule-tester): Document [DATA] methods in FlatRuleTester
1 parent 8d9de4f commit d1b5b9e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

packages/rule-tester/src/FlatRuleTester.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,10 @@ export class FlatRuleConfig<
520520
);
521521
});
522522
}
523-
523+
/**
524+
* Gets all configurations and the associated rule from a rule instance
525+
* Is a symbol to prevent cluttering up available methods
526+
*/
524527
[DATA](): {
525528
configurations: FlatRuleConfiguration<MessageIds, Options>[];
526529
rule: RuleModule<MessageIds, Options>;
@@ -585,6 +588,10 @@ export class FlatRuleConfiguration<
585588
return this;
586589
}
587590

591+
/**
592+
* Gets all samples and configuration from a configuration instance
593+
* Is a symbol to prevent cluttering up available methods
594+
*/
588595
[DATA](): {
589596
valid: ValidSample[];
590597
invalid: InvalidSample<MessageIds>[];

0 commit comments

Comments
 (0)