-
-
Notifications
You must be signed in to change notification settings - Fork 763
test(linter/plugins): add script for investigating failing conformance test cases #17296
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
|
@camc314 I think this stack is ready to merge, but it looks like CodSpeed have broken us somehow. Can I please leave it to you to merge once the CodSpeed problem is solved? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds a debugging script (tester.ts) to help investigate failing conformance test cases by running them with both ESLint and Oxlint side-by-side. The script is designed to be used interactively, allowing developers to add console logging to ESLint rule implementations to understand differences in behavior.
Key Changes:
- Adds a new standalone testing script that runs individual test cases through both ESLint's and Oxlint's RuleTester implementations
- Includes detailed inline documentation/instructions for how to use the script, targeted at AI assistants helping with debugging
- Sets up simple pass-through
describe/itfunctions to bypass the conformance test framework's capture mechanism
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
5be63ec to
a54c849
Compare
d6c586a to
015a771
Compare
015a771 to
fdf44b4
Compare
a54c849 to
7eaa660
Compare
fdf44b4 to
ee94d09
Compare

Add a script for testing failing conformance test cases. This is what I've been using to get Claude to diagnose the cause of test failures. I thought it'd be useful to commit it, so others can use it too if bug reports arise, or they want to tackle some of the remaining problems.