Improve error message when missing errors field in rule-tester
#5369
Labels
accepted
There is consensus among the team that this change meets the criteria for inclusion
archived due to age
This issue has been archived; please open a new issue for any further discussion
bug
ESLint is working incorrectly
core
Relates to ESLint's core APIs and features
infrastructure
Relates to the tools used in the ESLint development process
In version 1.10.3 (and probably earlier), when I forget to specify the
errors
field in an invalid case when usingrule-tester
, I get the error'Cannot read property 'length' of undefined'
. I think it would be nice to give a more explicit error message.I'm willing to submit a PR (actually already prepared one, to update when accepted).
The text was updated successfully, but these errors were encountered: