Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 682 Bytes

README.md

File metadata and controls

25 lines (17 loc) · 682 Bytes

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:

$ pnpm setup-gateway-servers

To run tests for all gateways:

$ 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:

$ 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:

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