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-serversTo run tests for all gateways:
$ pnpm test-gatewaysTo 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 partykitTo 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"Cloud Meta Merge Datastructure:
- PK(reqId,resId,tenant,ledger) accessed(date) (delete after x of time)
- PK(tenant,ledger,reqId,resId) meta deliveryCount (delete if deiveryCount > y) if meta is updated deliveryCount = 0
getMeta updates deliveryCount getMeta on stream starts updates stream of resGetMeta avoid subscribe method