refactor(formatter): Share fixtures test harness and test formatter_json#22676
Merged
graphite-app[bot] merged 1 commit intoMay 29, 2026
Conversation
Member
Author
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. |
This was referenced May 22, 2026
formatter_json
f9561dd to
d02ce5d
Compare
e62d84c to
1b46616
Compare
2e11123 to
65512a5
Compare
3f98531 to
de2a7f4
Compare
489ac04 to
c85c661
Compare
de2a7f4 to
87de790
Compare
c85c661 to
fbd7d62
Compare
87de790 to
3385f17
Compare
3385f17 to
ebbcfe6
Compare
fbd7d62 to
0e10ae2
Compare
ebbcfe6 to
9d067bc
Compare
274376b to
a03b6d8
Compare
6800406 to
d80375a
Compare
a03b6d8 to
a2da9c2
Compare
8c1fe42 to
6b9d0af
Compare
674f56f to
9cbe86d
Compare
a5729cc to
b46a590
Compare
9cbe86d to
1d9ec03
Compare
b46a590 to
e60c2cf
Compare
1d9ec03 to
12d19d1
Compare
e60c2cf to
ddcfca5
Compare
8923568 to
5371b7b
Compare
0d97724 to
6816b91
Compare
de845b0 to
a02c1d6
Compare
3d3c823 to
f660c95
Compare
Contributor
Merge activity
|
…json` (#22676) Extract the fixture-based snapshot test harness from `oxc_formatter` into two `oxc_formatter_core` modules behind a `test_harness` feature: - `test_support/codegen`: - Language-agnostic `build.rs` helper that walks `tests/fixtures/` and emits `#[test]` functions to `$OUT_DIR` - Extension allowlist is now a parameter instead of hardcoded JS types. - `test_support/harness`: - Snapshot-runtime that drives one format pass per option set × per printWidth (80, 100) and asserts via `insta` - Per-language hook is the new `FixtureFormatter` trait
39fdc17 to
e12e1fc
Compare
f660c95 to
e4a89ec
Compare
Base automatically changed from
05-22-tasks_conformance_add_json_prettier_conformance
to
main
May 29, 2026 00:58
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.

Extract the fixture-based snapshot test harness from
oxc_formatterinto twooxc_formatter_coremodules behind atest_harnessfeature:test_support/codegen:build.rshelper that walkstests/fixtures/and emits#[test]functions to$OUT_DIRtest_support/harness:instaFixtureFormattertrait