529 B
529 B
Testing
The tests use wasm-pack. See the wasm-bindgen guide for more information.
We run the tests in Node.js, Chrome and Firefox:
wasm-pack test --node
WASM_BINDGEN_USE_BROWSER=1 wasm-pack test --headless --chrome
WASM_BINDGEN_USE_BROWSER=1 wasm-pack test --headless --firefox
When debugging the browser tests, remove the --headless flag:
WASM_BINDGEN_USE_BROWSER=1 wasm-pack test --chrome