Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
Closed
Description
Suggestion
SomeRuleTester
tests in this repo are generated dynamically. Auto-generating tests like that can help create comprehensive test coverage for rules - but:
- They tended to exponentially grow in size as more cases get grown
- This is especially bad for slow typed tests: e.g.Tests: Reduce the giant number of naming-convention tests #9691
- They make it hard to see what cases are or aren't being tested
- They're not very statically analyzable
We'd like to move away from these auto-generated / dynamic test cases. That specifically means making all test cases passed toRuleTester
be completely inline plain old JavaScript objects. No.flatMap
s/.map
s, nodedupeTestCases
, helper functions, etc.
This issue tracks doing so forpackages/eslint-plugin/tests/rules/no-explicit-any.test.ts
.
Additional Info
💖