fix: use proper path, specify all models, place test in models.rs

This commit is contained in:
Ryan Walters
2025-08-20 08:43:01 -05:00
parent 730add4a79
commit ca82456a53
3 changed files with 14 additions and 19 deletions

View File

@@ -96,16 +96,3 @@ pub fn run() {
.run(tauri::generate_context!())
.expect("error while running tauri application");
}
#[cfg(test)]
mod tests {
use ts_rs::TS;
#[test]
fn export_bindings() {
// This will generate TypeScript bindings when you run `cargo test export_bindings`
use crate::models::*;
StreamDetail::export_all_to("../../src/bindings").expect("Failed to export bindings");
}
}