LangGraph.js API Reference
    Preparing search index...

    Interface CheckpointSaverTestInitializer<CheckpointerT>

    interface CheckpointSaverTestInitializer<
        CheckpointerT extends BaseCheckpointSaver,
    > {
        beforeAllTimeout?: number;
        checkpointerName: string;
        afterAll?(): void | Promise<void>;
        beforeAll?(): void | Promise<void>;
        createCheckpointer(): CheckpointerT | Promise<CheckpointerT>;
        destroyCheckpointer?(checkpointer: CheckpointerT): void | Promise<void>;
    }

    Type Parameters

    Index

    Properties

    beforeAllTimeout?: number

    Optional timeout for beforeAll. Useful for test setups that might take a while to complete, e.g. due to needing to pull a docker container.

    10000
    
    checkpointerName: string

    The name of the checkpointer being tested. This will be used to identify the checkpointer in test output.

    Methods

    • Called once after all tests are run. Use this to perform any infrastructure cleanup that your checkpointer may require, like tearing down docker containers, etc.

      Returns void | Promise<void>

    • Called once before any tests are run. Use this to perform any setup that your checkpoint checkpointer may require, like starting docker containers, etc.

      Returns void | Promise<void>

    • Called after each set of validations is run. Use this to clean up any resources that your checkpointer may have been using. This should include cleaning up any state that the checkpointer wrote during the tests that just ran.

      Parameters

      Returns void | Promise<void>

      BaseCheckpointSaver that was used during the test.