Skip to content

Commit

Permalink
guide: improve macro test invocation
Browse files Browse the repository at this point in the history
by using `-p wasm-bindgen-macro` instead of changing dir to `crates/macro`

Signed-off-by: Dominik Csapak <[email protected]>
  • Loading branch information
flumm committed Sep 21, 2023
1 parent cce8dcb commit 6c6501a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions guide/src/contributing/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ 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.

You can run these tests by running `cargo test` in the `crates/macro` directory:
You can run these tests by running `cargo test` for the `wasm-bindgen-macro`
crate:

```
cd crates/macro
cargo test
cargo test -p wasm-bindgen-macro
```

## The `js-sys` Tests
Expand Down

0 comments on commit 6c6501a

Please sign in to comment.