| 1 |
# Testing |
| 2 |
|
| 3 |
You can test the `web-sys` crate by running `cargo test` within the |
| 4 |
`crates/web-sys` directory in the `wasm-bindgen` repository: |
| 5 |
|
| 6 |
```sh |
| 7 |
cd wasm-bindgen/crates/web-sys |
| 8 |
cargo test --target wasm32-unknown-unknown --all-features |
| 9 |
``` |
| 10 |
|
| 11 |
The Wasm tests all run within a headless browser. See [the `wasm-bindgen-test` |
| 12 |
crate's |
| 13 |
`README.md`](https://github.com/rustwasm/wasm-bindgen/blob/master/crates/test/README.md) |
| 14 |
for details and configuring which headless browser is used. |