rustferry-core 0.1.0

Configuration, validation, naming, assets, and process control for RustFerry
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! Published configuration-schema synchronization test.

#[test]
fn checked_in_schema_matches_the_runtime_generator() {
    let generated: serde_json::Value =
        serde_json::from_str(&rustferry_core::FerryConfig::json_schema().expect("generate schema"))
            .expect("generated JSON schema");
    let checked_in: serde_json::Value =
        serde_json::from_str(include_str!("fixtures/ferry.schema.json"))
            .expect("checked-in JSON schema");
    assert_eq!(checked_in, generated);
}