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
leaysgur
force-pushed
the
05-22-tasks_conformance_add_json_prettier_conformance
branch
from
May 22, 2026 08:14
f9561dd to
d02ce5d
Compare
leaysgur
force-pushed
the
05-22-refactor_formatter_share_fixtures_test_harness_and_test_formatter_json
branch
2 times, most recently
from
May 22, 2026 08:17
e62d84c to
1b46616
Compare
leaysgur
force-pushed
the
05-22-refactor_formatter_share_fixtures_test_harness_and_test_formatter_json
branch
4 times, most recently
from
May 25, 2026 00:38
2e11123 to
65512a5
Compare
leaysgur
force-pushed
the
05-22-tasks_conformance_add_json_prettier_conformance
branch
2 times, most recently
from
May 25, 2026 02:10
3f98531 to
de2a7f4
Compare
leaysgur
force-pushed
the
05-22-refactor_formatter_share_fixtures_test_harness_and_test_formatter_json
branch
2 times, most recently
from
May 25, 2026 02:20
489ac04 to
c85c661
Compare
leaysgur
force-pushed
the
05-22-tasks_conformance_add_json_prettier_conformance
branch
from
May 25, 2026 02:20
de2a7f4 to
87de790
Compare
leaysgur
force-pushed
the
05-22-refactor_formatter_share_fixtures_test_harness_and_test_formatter_json
branch
from
May 25, 2026 05:51
c85c661 to
fbd7d62
Compare
leaysgur
force-pushed
the
05-22-tasks_conformance_add_json_prettier_conformance
branch
from
May 25, 2026 05:51
87de790 to
3385f17
Compare
leaysgur
force-pushed
the
05-22-tasks_conformance_add_json_prettier_conformance
branch
from
May 25, 2026 07:49
3385f17 to
ebbcfe6
Compare
leaysgur
force-pushed
the
05-22-refactor_formatter_share_fixtures_test_harness_and_test_formatter_json
branch
from
May 25, 2026 07:49
fbd7d62 to
0e10ae2
Compare
leaysgur
force-pushed
the
05-22-tasks_conformance_add_json_prettier_conformance
branch
from
May 25, 2026 07:50
ebbcfe6 to
9d067bc
Compare
leaysgur
force-pushed
the
05-22-refactor_formatter_share_fixtures_test_harness_and_test_formatter_json
branch
2 times, most recently
from
May 25, 2026 08:06
274376b to
a03b6d8
Compare
leaysgur
force-pushed
the
05-22-tasks_conformance_add_json_prettier_conformance
branch
2 times, most recently
from
May 25, 2026 08:35
6800406 to
d80375a
Compare
leaysgur
force-pushed
the
05-22-refactor_formatter_share_fixtures_test_harness_and_test_formatter_json
branch
from
May 25, 2026 08:35
a03b6d8 to
a2da9c2
Compare
leaysgur
force-pushed
the
05-22-refactor_formatter_share_fixtures_test_harness_and_test_formatter_json
branch
from
May 25, 2026 11:25
8c1fe42 to
6b9d0af
Compare
leaysgur
force-pushed
the
05-22-tasks_conformance_add_json_prettier_conformance
branch
2 times, most recently
from
May 26, 2026 06:24
674f56f to
9cbe86d
Compare
leaysgur
force-pushed
the
05-22-refactor_formatter_share_fixtures_test_harness_and_test_formatter_json
branch
3 times, most recently
from
May 26, 2026 08:21
a5729cc to
b46a590
Compare
leaysgur
force-pushed
the
05-22-tasks_conformance_add_json_prettier_conformance
branch
from
May 26, 2026 08:21
9cbe86d to
1d9ec03
Compare
leaysgur
force-pushed
the
05-22-refactor_formatter_share_fixtures_test_harness_and_test_formatter_json
branch
from
May 28, 2026 00:44
b46a590 to
e60c2cf
Compare
leaysgur
force-pushed
the
05-22-tasks_conformance_add_json_prettier_conformance
branch
from
May 28, 2026 00:44
1d9ec03 to
12d19d1
Compare
leaysgur
force-pushed
the
05-22-refactor_formatter_share_fixtures_test_harness_and_test_formatter_json
branch
from
May 28, 2026 02:33
e60c2cf to
ddcfca5
Compare
leaysgur
force-pushed
the
05-22-tasks_conformance_add_json_prettier_conformance
branch
2 times, most recently
from
May 28, 2026 06:46
8923568 to
5371b7b
Compare
leaysgur
force-pushed
the
05-22-refactor_formatter_share_fixtures_test_harness_and_test_formatter_json
branch
2 times, most recently
from
May 28, 2026 07:14
0d97724 to
6816b91
Compare
leaysgur
force-pushed
the
05-22-tasks_conformance_add_json_prettier_conformance
branch
2 times, most recently
from
May 28, 2026 07:29
de845b0 to
a02c1d6
Compare
leaysgur
force-pushed
the
05-22-refactor_formatter_share_fixtures_test_harness_and_test_formatter_json
branch
2 times, most recently
from
May 29, 2026 00:27
3d3c823 to
f660c95
Compare
leaysgur
marked this pull request as ready for review
May 29, 2026 00:48
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
graphite-app
Bot
force-pushed
the
05-22-tasks_conformance_add_json_prettier_conformance
branch
from
May 29, 2026 00:51
39fdc17 to
e12e1fc
Compare
graphite-app
Bot
force-pushed
the
05-22-refactor_formatter_share_fixtures_test_harness_and_test_formatter_json
branch
from
May 29, 2026 00:51
f660c95 to
e4a89ec
Compare
Base automatically changed from
05-22-tasks_conformance_add_json_prettier_conformance
to
main
May 29, 2026 00:58
graphite-app
Bot
deleted the
05-22-refactor_formatter_share_fixtures_test_harness_and_test_formatter_json
branch
May 29, 2026 00:59
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