Function getSnapshotStore

  • Parameters

    • className: string

      class name (snapshot filename stem)

    • Optional snapshotDir: string

      optional custom directory

    • Optional importMeta: ImportMeta

      pass import.meta from calling module to resolve snapshot dir relative to it

    Returns SnapshotStore

    Description

    Returns (or creates) the SnapshotStore for a given class and snapshot directory. Stores are cached globally by className + snapshotDir.