fix: create schemas folder

This commit is contained in:
Sergey Onufrienko 2023-06-21 16:13:04 +02:00
parent 01b9e88079
commit a9fec7f15b
No known key found for this signature in database
GPG key ID: 3299873ECFD30CA3

View file

@ -1092,6 +1092,7 @@ mod tests {
fn export_schema() { fn export_schema() {
let theme = schema_for!(Theme); let theme = schema_for!(Theme);
let output = serde_json::to_string_pretty(&theme).unwrap(); let output = serde_json::to_string_pretty(&theme).unwrap();
std::fs::create_dir("schemas").ok();
std::fs::write("schemas/theme.json", output).ok(); std::fs::write("schemas/theme.json", output).ok();
} }
} }