An open API service indexing awesome lists of open source software.

https://github.com/fireproof-storage/connect


https://github.com/fireproof-storage/connect

Last synced: 10 months ago
JSON representation

Awesome Lists containing this project

README

          

# Testing

All gateways are enabled by default in the Fireproof test suite. Before running the tests, you need to set up the gateway servers for PartyKit and Netlify:

```console
$ pnpm setup-gateway-servers
```

To run tests for all gateways:

```console
$ pnpm test-gateways
```

To run tests for a single gateway, you can use the Vitest workspace configuration. For example, to run tests for the PartyKit gateway only:

```console
$ pnpm test-gateways --project partykit
```

To run a single test by its full name, you can use the `-t` flag followed by the test name in quotes. For example:

```console
$ pnpm test-gateways --project partykit -t "should sync to an empty db"
```