Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion docs/DEV_ENVIRONMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
export BOB_PASSPHRASE="also shoot benefit prefer juice shell elder veteran woman mimic image kidney"
export ALICE_PASSPHRASE="spice describe gravity federal blast come thank unfair canal monkey style afraid"
```
6. Run WASM tests
5. Run WASM tests
- for Linux users:
```
wasm-pack test --firefox --headless mm2src/mm2_main
Expand All @@ -66,5 +66,16 @@
CC=/opt/homebrew/opt/llvm/bin/clang AR=/opt/homebrew/opt/llvm/bin/llvm-ar wasm-pack test --firefox --headless mm2src/mm2_main
```
Please note `CC` and `AR` must be specified in the same line as `wasm-pack test mm2src/mm2_main`.
#### Running specific WASM tests with Cargo</br>
- Install `wasm-bindgen-cli`: </br>
Make sure you have wasm-bindgen-cli installed with a version that matches the one specified in your Cargo.toml file.
You can install it using Cargo with the following command:
```
cargo install -f wasm-bindgen-cli --version <wasm-bindgen-version>
```
- Run
```
cargo test --target wasm32-unknown-unknown --package coins --lib utxo::utxo_block_header_storage::wasm::indexeddb_block_header_storage
```

PS If you notice that this guide is outdated, please submit a PR.