Latest Results
test(swc): unify compiler test pipelines and reorganize transform fixtures (#12676)
**Description:**
This refactor has two main parts:
- **Reorganize tests in the `swc` crate.** The main change is a shared
`compile` pipeline: consolidate scattered compiler snapshots and
suitable Rust assertions into `input + .swcrc → output` fixtures,
grouped by functionality with consistent snapshot conventions. A shared
`exec` pipeline similarly consolidates compilation and runtime checks.
The remaining changes organize specialized suites such as Flow, source
maps, minification, and panic tests.
- **Migrate tests from the TypeScript, React, and Compat crates.** Move
preset and composite cases expressible through `.swcrc` into
`swc/compile`. Keep or restore cases requiring specialized assertions as
transform API tests in their original crates, organized by functionality
instead of `composite`. Update the documentation to clarify where future
end-to-end and transform API tests belong.
Validation: `cargo fmt --all`, `SKIP_HELPERS=1 cargo clippy --all
--all-targets -- -D warnings`, `SKIP_HELPERS=1 cargo test -p swc`, and
`SKIP_HELPERS=1 cargo test -p swc --features flow,react-compiler --test
compile` passed. Migration checks also covered fixture counts, input
preservation, and output semantics.
**Related issue (if exists):** N/A Latest Branches
0%
chenjiahan:chenjiahan/upgrade-browserslist-0-22 0%
0%
codex/swc-preset-fixtures © 2026 CodSpeed Technology