DevPlacetypeno test imports ittype DevPlace = { readonly kind: "memory" } | { readonly kind: "folder"; readonly dir: string };Where a development store is kept: in memory, or in a folder that is made when it is not there.
The fleet store for development and tests (commons estate 0006-estate-fleet-store): a store in memory or in a folder, with no replicas and no host, opened with the same function and holding the same documents as the store of a fleet, so that everything the estate does with stored data can be done and tried before a host is named.
import { devFleetStore } from "./dev.ts";
const fleet = await devFleetStore({ kind: "memory" }, { actor: "operator" });
fleet.kind; // "ok"DevPlacetypeno test imports ittype DevPlace = { readonly kind: "memory" } | { readonly kind: "folder"; readonly dir: string };Where a development store is kept: in memory, or in a folder that is made when it is not there.
DevOptionstypeno test imports ittype DevOptions = Pick<FleetConfig, "actor" | "clock" | "attempts"> & { readonly identity?: string };What a development store is opened with beyond where it is: who writes, and the clock. The store is made a fleet store where it is not one.
devFleetStorefunctionfunction devFleetStore(place: DevPlace, options: DevOptions): Promise<Result<FleetStore, FleetProblem>>A fleet store in memory or in a folder, with no replicas.