@adobe/data - v0.10.30
    Preparing search index...

    Type Alias UpgradeHandlerTest<T>

    A per-handler test case: populate the store at the handler's INPUT version, then assert the OUTPUT after the handler runs. setup may return anything (e.g. the entities it created) to carry into expect.

    type UpgradeHandlerTest<T = unknown> = {
        expect: (store: Store<any, any, any>, setup: T) => void;
        setup: (store: Store<any, any, any>) => T;
    }

    Type Parameters

    • T = unknown
    Index

    Properties

    Properties

    expect: (store: Store<any, any, any>, setup: T) => void
    setup: (store: Store<any, any, any>) => T