AppFlowy-Cloud/libs/wasm-test/README.md

607 B

Before running the test, AppFlowy Cloud need to run with nginx server by this command:

docker compose up -d

## Run test

> Before executing the test, you need to install the [Chrome Driver](https://chromedriver.chromium.org/downloads). If
> you are using a Mac, you can easily install it using Homebrew.
>
> ```shell
> brew install chromedriver
> ```

then run the test


```shell
wasm-pack test --headless  --chrome

Testing in browser

wasm-pack test --chrome

Ref: wasm-bindgen-test