ci: merge ci builds, run cargo tests directly, export bindings directly into src/

This commit is contained in:
Ryan Walters
2025-08-20 08:16:27 -05:00
parent 8069d5a061
commit 2f43f81555
5 changed files with 38 additions and 147 deletions

View File

@@ -99,14 +99,13 @@ pub fn run() {
#[cfg(test)]
mod tests {
use crate::models::StreamDetail;
use super::*;
use ts_rs::TS;
#[test]
fn export_bindings() {
// This will generate TypeScript bindings when you run `cargo test export_bindings`
TS::export_all_to("../../src/bindings")
use crate::models::*;
StreamDetail::export_all_to("../../src/bindings").expect("Failed to export bindings");
}
}