[rule-tester] support multipass fixes #8554
Labels
accepting prs
Go ahead, send a pull request that resolves this issue
breaking change
This change will require a new major version to be released
enhancement
New feature or request
locked due to age
Please open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.
package: rule-tester
Issues related to the @typescript-eslint/rule-tester package
Milestone
Before You File a Proposal Please Confirm You Have Done The Following...
Relevant Package
utils
My proposal is suitable for this project
Description
eslint/eslint#18007 was rejected as a breaking change enhancement.
Given this impacts us directly (eg #8251) we should build this into our fork.
I propose the following changes:
output
and theoutput
value is a string and the test case requires more than 1 pass to fix then the test case fails with a message like "test requires multiple fixes to resolve due to overlapping fix ranges - please use the array form ofoutput
to declare all of the expected fix passes".output
which declares the expected fix passes for a test case.n
asserts that there are exactlyn
fix passesn
th element of the array.Additional Info
No response
The text was updated successfully, but these errors were encountered: