wasm-bindgen-test crate is an experimental test harness for Rust programs
compiled to wasm using
wasm-bindgen and the
Write tests for wasm as similar as possible to how you normally would write
#[test]-style unit tests for native targets.
Run the tests with the usual
cargo testcommand but with an explicit wasm target:
cargo test --target wasm32-unknown-unknown