Change Request: Rule Tester omit specific properties for duplicate test case detection #18173
Closed
1 task done
Labels
accepted
There is consensus among the team that this change meets the criteria for inclusion
core
Relates to ESLint's core APIs and features
enhancement
This change enhances an existing feature of ESLint
ESLint version
8.57.0
What problem do you want to solve?
The RuleTester currently stringifies all test case properties for each test case to check for duplicate test cases (see here).
This means some duplicate test cases are not discovered.
Test cases with different
name
s:Test cases with a different error matcher:
Not fixable test cases one specifying
output
and the other not:What do you think is the correct solution?
The used serialize package offers a replacer method which could exclude the properties
name
,errors
andoutput
.The other Rule Tester specific property is
only
but I do not think that developers want to be warned about duplicate test cases when focusing on a test case.Participation
Additional comments
No response
The text was updated successfully, but these errors were encountered: