AppFlowy-Cloud/libs/wasm-test
Kilu.He 3bf5fb057d
feat: support client api to wasm (#426)
* feat: support client api to wasm

* fix: cargo fmt

* fix: delete github config

* fix: readme

* feat: add wasm ci

* fix: code review

* fix: add test

* fix: add sign in test

* fix: test error

---------

Co-authored-by: root <root@DESKTOP-RCFUF7L>
Co-authored-by: nathan <nathan@appflowy.io>
2024-04-02 15:19:21 +08:00
..
src feat: create websocket crate for wasm and native (#269) 2024-01-23 14:25:01 +08:00
tests feat: support client api to wasm (#426) 2024-04-02 15:19:21 +08:00
Cargo.toml chore: run with different env file (#275) 2024-01-29 02:26:43 +08:00
README.md ci: fix wasm test (#369) 2024-03-05 15:03:33 +08:00

README.md

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