diff --git a/javascript/packages/cli/src/actions/test.ts b/javascript/packages/cli/src/actions/test.ts index 353e024c0..03f32130c 100644 --- a/javascript/packages/cli/src/actions/test.ts +++ b/javascript/packages/cli/src/actions/test.ts @@ -8,7 +8,7 @@ import path from "path"; import { AVAILABLE_PROVIDERS } from "../constants"; /** - * Test - performs test/assertions agins the spawned network, using a set of natural + * Test - performs test/assertions against the spawned network, using a set of natural * language expressions that allow to make assertions based on metrics, logs and some * built-in function that query the network using polkadot.js * Read more here: https://paritytech.github.io/zombienet/cli/testing.html diff --git a/javascript/packages/orchestrator/README.md b/javascript/packages/orchestrator/README.md index 97551ee29..cdf73c287 100644 --- a/javascript/packages/orchestrator/README.md +++ b/javascript/packages/orchestrator/README.md @@ -322,6 +322,24 @@ npm install npm run build ``` +### Build `parser-wrapper` locally (optional) + +Building the `parser-wrapper` can help on running/testing locally changes on the test parser. +In order to build the parser one first needs to run the `wasm-pack` (make sure that [wasm-pack](https://github.com/rustwasm/wasm-pack) is installed): + +```bash +cd zombienet/crates/parser-wrapper +wasm-pack build --release --target nodejs --scope zombienet +``` + +Once it is done, the next step is to create a symlink to the created `pkg` from inside the javascript directory, as can be seen below: + +```bash +cd zombienet/javascript +npm link ../crates/parser-wrapper/pkg/ +npm run build +``` + ### Download and install needed artifacts (optional) For an easier and faster setup of your local environment, run: