mirror of
https://github.com/Xevion/byte-me.git
synced 2025-12-06 11:14:36 -06:00
ci: merge ci builds, run cargo tests directly, export bindings directly into src/
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user