-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Open
Labels
coreRelates to ESLint's core APIs and featuresRelates to ESLint's core APIs and featuresenhancementThis change enhances an existing feature of ESLintThis change enhances an existing feature of ESLintneeds designImportant details about this change need to be discussedImportant details about this change need to be discussed
Description
We test rules with a custom rule tester doing a snapshot test.
The built-in RuleTester can't customize the output assertion, we don't have the output to send to RuleTester, so we have to use SourceCodeFixer to apply fix from messages. Full implementation
We definitely want a better way to do snapshot test, maybe pass an assert option in future, but before that, can we expose SourceCodeFixer, so I can apply fix from the message?
The version of ESLint you are using.
8.0.0-beta.0
The problem you want to solve.
Fix our rule tester.
Are you willing to submit a pull request to implement this change?
Yes.
sindresorhus, bmish, artaommahe, dimaMachina, JoshuaKGoldberg and 1 more
Metadata
Metadata
Assignees
Labels
coreRelates to ESLint's core APIs and featuresRelates to ESLint's core APIs and featuresenhancementThis change enhances an existing feature of ESLintThis change enhances an existing feature of ESLintneeds designImportant details about this change need to be discussedImportant details about this change need to be discussed
Type
Projects
Status
Waiting for RFC