mirror of
https://github.com/oxc-project/oxc.git
synced 2026-09-14 19:36:11 +08:00
e4a89ec5fe
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
2 lines
14 B
Rust
2 lines
14 B
Rust
mod fixtures;
|