Skip to content

test(linter/plugins): add ability to fix suggestions in JS plugins tests#18961

Merged
graphite-app[bot] merged 1 commit intomainfrom
om/02-04-test_linter_plugins_add_ability_to_fix_suggestions_in_js_plugins_tests
Feb 5, 2026
Merged

test(linter/plugins): add ability to fix suggestions in JS plugins tests#18961
graphite-app[bot] merged 1 commit intomainfrom
om/02-04-test_linter_plugins_add_ability_to_fix_suggestions_in_js_plugins_tests

Conversation

@overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented Feb 5, 2026

Add ability to run oxlint with --fix-suggestions flag in tests.

Copy link
Member Author

overlookmotel commented Feb 5, 2026


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

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.

@github-actions github-actions bot added A-linter Area - Linter A-cli Area - CLI A-linter-plugins Area - Linter JS plugins C-test Category - Testing. Code is missing test cases, or a PR is adding them labels Feb 5, 2026
@overlookmotel overlookmotel force-pushed the om/02-04-test_linter_plugins_reduce_repetition_in_runfixture_ branch from 0d97095 to bc22023 Compare February 5, 2026 02:05
@overlookmotel overlookmotel force-pushed the om/02-04-test_linter_plugins_add_ability_to_fix_suggestions_in_js_plugins_tests branch from 3dd8ddd to 0f5851d Compare February 5, 2026 02:05
@overlookmotel overlookmotel marked this pull request as ready for review February 5, 2026 02:06
Copilot AI review requested due to automatic review settings February 5, 2026 02:06
Copy link
Contributor

Copilot AI left a 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 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 fixSuggestions boolean property to the test fixture options interface
  • Implemented test execution logic for --fix-suggestions flag following the existing --fix pattern
  • 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.

@overlookmotel overlookmotel self-assigned this Feb 5, 2026
@overlookmotel overlookmotel added the 0-merge Merge with Graphite Merge Queue label Feb 5, 2026
Copy link
Member Author

overlookmotel commented Feb 5, 2026

Merge activity

  • Feb 5, 2:23 AM UTC: The merge label '0-merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Feb 5, 2:23 AM UTC: overlookmotel added this pull request to the Graphite merge queue.
  • Feb 5, 2:31 AM UTC: The Graphite merge queue removed this pull request due to downstack failures on PR #18960.
  • Feb 5, 2:51 AM UTC: The merge label '0-merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Feb 5, 2:51 AM UTC: overlookmotel added this pull request to the Graphite merge queue.
  • Feb 5, 2:52 AM UTC: Merged by the Graphite merge queue.

…sts (#18961)

Add ability to run `oxlint` with `--fix-suggestions` flag in tests.
@graphite-app graphite-app bot force-pushed the om/02-04-test_linter_plugins_reduce_repetition_in_runfixture_ branch from bc22023 to cae8e95 Compare February 5, 2026 02:25
@graphite-app graphite-app bot force-pushed the om/02-04-test_linter_plugins_add_ability_to_fix_suggestions_in_js_plugins_tests branch from 0f5851d to 86047f9 Compare February 5, 2026 02:26
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Feb 5, 2026
@overlookmotel overlookmotel added the 0-merge Merge with Graphite Merge Queue label Feb 5, 2026
Base automatically changed from om/02-04-test_linter_plugins_reduce_repetition_in_runfixture_ to main February 5, 2026 02:51
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Feb 5, 2026
@graphite-app graphite-app bot merged commit 86047f9 into main Feb 5, 2026
20 checks passed
@graphite-app graphite-app bot deleted the om/02-04-test_linter_plugins_add_ability_to_fix_suggestions_in_js_plugins_tests branch February 5, 2026 02:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-cli Area - CLI A-linter Area - Linter A-linter-plugins Area - Linter JS plugins C-test Category - Testing. Code is missing test cases, or a PR is adding them

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants