Files
oxc-project__oxc/crates/oxc_formatter/build.rs
leaysgur 6e1b4ddceb refactor(formatter_core,formatter_tests): extract oxc_formatter_tests crate from oxc_formatter_core (#25465)
- Extract `test_harness` feature as crate `oxc_formatter_tests`
- This crate will also provide infra for `tasks/prettier_conformance` later
2026-08-12 00:40:59 +00:00

17 lines
438 B
Rust

use std::{
env,
path::{Path, PathBuf},
};
use oxc_formatter_tests::{GenerateConfig, generate_tests};
fn main() {
let out_dir = env::var("OUT_DIR").unwrap();
let dest_path = PathBuf::from(out_dir).join("generated_tests.rs");
let config =
GenerateConfig { extensions: &["js", "jsx", "ts", "tsx", "mjs", "cjs", "mts", "cts"] };
generate_tests(&dest_path, Path::new("tests/fixtures"), &config).unwrap();
}