I have a Rust module that I'm compiling with wasm-bindgen
. I also have the following test in my tests/wasm.rs
file:
// //! Test suite for the Web and headless browsers.
//
#![cfg(target_arch = "wasm32")]
extern crate wasm_bindgen_test;
use wasm_bindgen_test::*;
// extern crate patissier;
use mycrate::output_method;
// wasm_bindgen_test_configure!(run_in_browser);
#[wasm_bindgen_test]
fn test_output_method() {
let output = output_method("somestring".to_string());
assert!(output.is_valid());
}
The tests run fine when I use wasm-pack test --node
, but what I'd like to see is the output, in node.js, of the test. Is there a way to do this?
Aucun commentaire:
Enregistrer un commentaire