Skip to content

Commit

Permalink
Add parser-wrapper doc (#1034)
Browse files Browse the repository at this point in the history
  • Loading branch information
wirednkod authored May 10, 2023
1 parent da65867 commit 5f23ccf
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion javascript/packages/cli/src/actions/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
18 changes: 18 additions & 0 deletions javascript/packages/orchestrator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 5f23ccf

Please sign in to comment.