Skip to content

Commit 30b0745

Browse files
committed
wasm: Add instructions for running tests & benchmarks
1 parent 9dd76f2 commit 30b0745

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

packages/wasm/README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,29 @@ const g = ohm.grammar('MyGrammar { start = "blah" }');
3232
// compile() returns the Wasm grammar blob as a Uint8Array.
3333
const bytes = new Compiler(g).compile();
3434
```
35+
36+
### Development
37+
38+
#### Prerequisites
39+
40+
- pnpm
41+
- Node >= 24
42+
- Make
43+
44+
#### Setup
45+
46+
From the repo root:
47+
48+
```
49+
pnpm install
50+
```
51+
52+
#### Testing etc.
53+
54+
From packages/wasm dir:
55+
56+
```
57+
pnpm test # Run all tests
58+
pnpm ava test/test-liquid-html.js # Run a specific test file
59+
make bench # Run perf benchmarks
60+
```

0 commit comments

Comments
 (0)