eslint-vitest-rule-tester
ESLint rule tester with Vitest, with more powerful and friendly APIs.
by made-in-commonTypeScript
Commit activity
Last 12 weeks · 4 commits
Community health
4 of 6 standards met
Recent PRs & issues
Clear and concise description of the problem Currently, eslint-vitest-rule-tester cannot test oxlint rules. Suggested solution oxlint exports RuleTester. By supporting this, we can test whether rules work on oxlint. https://github.com/oxc-project/oxc/blob/c8c5341d61f16e7360284bcd63073a8169a2b47f/apps/oxlint/src-js/package/rule_tester.ts#L309 Alternative We can build your own test execution infrastructure using oxlint's RuleTester, referencing oxlint's test cases. https://github.com/oxc-project/oxc/blob/main/apps/oxlint/test/rule_tester.test.ts Additional context _No response_ Validations [x] Follow our Code of Conduct [x] Read the Contributing Guide. [x] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
Recent fixes
Summary Adds support for Vitest 5 (GA, released off rc.4). : added : bumped -> regenerated Closes #27. Compatibility notes Reviewed Vitest 5 breaking changes (Node >=22.12 requirement, default true, // hoisting now throws instead of warns, removed /, inlined ). None apply to this package — it only imports // from and uses no mocking or sequential-test APIs. Verification → 4 files, 27 tests passed under Vitest v5.0.0 → clean → clean (tsdown) → clean
Repository: made-in-common/eslint-vitest-rule-tester. Description: ESLint rule tester with Vitest, with more powerful and friendly APIs. Stars: 143, Forks: 10. Primary language: TypeScript. Languages: TypeScript (99.6%), JavaScript (0.4%). License: MIT. Latest release: v3.2.0 (2mo ago). Open PRs: 0, open issues: 1. Last activity: 1d ago. Community health: 62%. Top contributors: antfu, 9romise, ntnyq, sxzz, azat-io, Newbie012, olivier-thatch, pauliesnug, RebeccaStevens, hyoban and others.