https://github.com/fireproof-storage/connect
https://github.com/fireproof-storage/connect
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/fireproof-storage/connect
- Owner: fireproof-storage
- License: other
- Created: 2024-07-03T15:05:30.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-17T09:36:35.000Z (over 1 year ago)
- Last Synced: 2025-03-22T14:04:39.310Z (about 1 year ago)
- Language: TypeScript
- Size: 2.73 MB
- Stars: 3
- Watchers: 0
- Forks: 6
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
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"
```