Skip to content

test(linter/plugins): shorten RuleTester test cases#16689

Merged
graphite-app[bot] merged 1 commit intomainfrom
12-10-test_linter_plugins_shorten_ruletester_test_cases
Dec 10, 2025
Merged

test(linter/plugins): shorten RuleTester test cases#16689
graphite-app[bot] merged 1 commit intomainfrom
12-10-test_linter_plugins_shorten_ruletester_test_cases

Conversation

@overlookmotel
Copy link
Copy Markdown
Member

@overlookmotel overlookmotel commented Dec 10, 2025

Pure refactor of tests. Just shorten a couple of test cases.

Also remove a TODO comment for "add more config tests". There are plenty now!

@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 Dec 10, 2025
Copy link
Copy Markdown
Member Author

overlookmotel commented Dec 10, 2025


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.

Copy link
Copy Markdown
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 refactors RuleTester tests by removing an outdated TODO comment and simplifying test case definitions. The config section already has adequate test coverage with 3 tests (global config, reset, and immutability), making the TODO comment obsolete. The test case simplifications convert object notation { code: "..." } to the more concise string shorthand "..." where no additional configuration is needed, following a pattern commonly used throughout the test file.

Key Changes

  • Removed TODO comment for "add more config tests" as the config section has sufficient coverage
  • Simplified two test cases from object form to string shorthand in "mixed across test cases" tests

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@overlookmotel overlookmotel self-assigned this Dec 10, 2025
@graphite-app graphite-app bot added the 0-merge Merge with Graphite Merge Queue label Dec 10, 2025
@graphite-app
Copy link
Copy Markdown
Contributor

graphite-app bot commented Dec 10, 2025

Merge activity

Pure refactor of tests. Just shorten a couple of test cases.

Also remove a TODO comment for "add more config tests". There are plenty now!
@graphite-app graphite-app bot force-pushed the 12-10-feat_linter_plugins_add_parseroptions.lang_option_to_ruletester_ branch from fadb424 to 563eab7 Compare December 10, 2025 11:10
@graphite-app graphite-app bot force-pushed the 12-10-test_linter_plugins_shorten_ruletester_test_cases branch from affb872 to cd78a76 Compare December 10, 2025 11:11
Base automatically changed from 12-10-feat_linter_plugins_add_parseroptions.lang_option_to_ruletester_ to main December 10, 2025 11:16
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Dec 10, 2025
@graphite-app graphite-app bot merged commit cd78a76 into main Dec 10, 2025
19 checks passed
@graphite-app graphite-app bot deleted the 12-10-test_linter_plugins_shorten_ruletester_test_cases branch December 10, 2025 11:17
Copilot AI pushed a commit that referenced this pull request Dec 10, 2025
Pure refactor of tests. Just shorten a couple of test cases.

Also remove a TODO comment for "add more config tests". There are plenty now!
taearls pushed a commit to taearls/oxc that referenced this pull request Dec 11, 2025
)

Pure refactor of tests. Just shorten a couple of test cases.

Also remove a TODO comment for "add more config tests". There are plenty now!
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