effect-tea-persistent
    Preparing search index...
    • Checks a program's migrations against the cases a test recorded of them. Each case must still be read as it recorded, and what it wrote must still be read at the program's version: migrated through every migration after it, and decoded by the program's schema. Each function a migration declares must have a case, so that a migration nobody recorded is not changed in silence. Returns every violation, so that a test can assert there are none (decision 0126).

      Type Parameters

      • T extends Readonly<
            {
                flags: unknown;
                inbound: unknown;
                index: string;
                internal: unknown;
                key: string;
                operation: Readonly<{ _tag: string }>;
                parameter: object;
                projection: unknown;
                rejection: unknown;
                sender: unknown;
                services: unknown;
                state: object;
                topics?: Readonly<Record<string, Json>>;
            },
        >

      Parameters

      • program: Program<T>
      • cases: Iterable<
            Readonly<
                {
                    from: number;
                    of: | "state"
                    | "flags"
                    | "inbound"
                    | "internal"
                    | "operation"
                    | "rejection"
                    | "sender"
                    | "projection";
                    read: Json;
                    written: Json;
                },
            >,
        >

      Returns readonly MigrationViolation[]