test(linter/plugins): add ability to fix suggestions in JS plugins tests#18961
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. |
0d97095 to
bc22023
Compare
3dd8ddd to
0f5851d
Compare
There was a problem hiding this comment.
Pull request overview
This PR adds support for testing the --fix-suggestions flag in the oxlint test framework. The changes enable test fixtures to opt-in to running oxlint with the --fix-suggestions CLI option and recording the results in snapshots.
Changes:
- Added
fixSuggestionsboolean property to the test fixture options interface - Implemented test execution logic for
--fix-suggestionsflag following the existing--fixpattern - Updated validation logic and error messages to include the new option
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| apps/oxlint/test/utils.ts | Added fixSuggestions property to Fixture interface, default options, and type validation |
| apps/oxlint/test/e2e.test.ts | Implemented test execution logic for --fix-suggestions flag with proper snapshot naming |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Merge activity
|
…sts (#18961) Add ability to run `oxlint` with `--fix-suggestions` flag in tests.
bc22023 to
cae8e95
Compare
0f5851d to
86047f9
Compare

Add ability to run
oxlintwith--fix-suggestionsflag in tests.