test(linter/plugins): add cwd option to tests#18754
Merged
graphite-app[bot] merged 1 commit intomainfrom Jan 31, 2026
Merged
Conversation
Member
Author
This was referenced Jan 31, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Adds support for running fixture-based CLI tests from a subdirectory within a fixture (via a new cwd option), enabling upcoming plugin-resolution coverage (referenced in PR #18755).
Changes:
- Extend fixture
options.jsonparsing/types to support a nullablecwdoption. - Apply the fixture-provided
cwdwhen spawning the test command viaexeca.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
f618359 to
e9fb488
Compare
ce78b95 to
0c06484
Compare
camc314
approved these changes
Jan 31, 2026
Contributor
Merge activity
|
Add a `cwd` option to tests which causes test runner to run Oxlint from within a subfolder inside a fixture dir, instead of root of the fixture dir. This is used for the test added in next PR (#18755).
0c06484 to
b002aa5
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Add a
cwdoption to tests which causes test runner to run Oxlint from within a subfolder inside a fixture dir, instead of root of the fixture dir. This is used for the test added in next PR (#18755).