mirror of
https://github.com/oxc-project/oxc.git
synced 2026-09-14 19:36:11 +08:00
6e1b4ddceb
- Extract `test_harness` feature as crate `oxc_formatter_tests` - This crate will also provide infra for `tasks/prettier_conformance` later
17 lines
438 B
Rust
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();
|
|
}
|