test(linter/plugins): add 1 more test case for sourceType in RuleTester#16671
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. |
Merge activity
|
There was a problem hiding this comment.
Pull request overview
This PR adds a missing test case to verify the default sourceType behavior in RuleTester. The test ensures that when no sourceType is explicitly specified, the parser defaults to "module" mode, which causes with statements to fail parsing (as expected). This is a follow-on to PR #16660 and adds test coverage that was missed in PR #16670.
Key Changes:
- Added test case for default
sourceTypebehavior (no explicit configuration) - Updated snapshot to include expected parsing error for the new test case
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
4b347c9 to
388030c
Compare
…ester` (oxc-project#16671) Follow-on after oxc-project#16660. Add 1 more test that I missed in oxc-project#16670.

Follow-on after #16660. Add 1 more test that I missed in #16670.