wasm-bindgen
's TestsThese are the largest test suites, and most common to run in day to day wasm-bindgen
development. These tests are compiled to Wasm and then run in Node.js or a headless browser via the WebDriver protocol.
cargo test --target wasm32-unknown-unknown
See the wasm-bindgen-test
crate's README.md
for details and configuring which headless browser is used.
wasm-bindgen
on the Native Host TargetThis small test suite just verifies that exported wasm-bindgen
methods can still be used on the native host's target.
cargo test
cargo test -p webidl-tests --target wasm32-unknown-unknown
These tests assert that we have reasonable error messages that point to the right source spans when the #[wasm_bindgen]
proc-macro is misused.
cargo test -p ui-tests
js-sys
Testsweb-sys
Tests