class name used for the snapshot filename
Optional snapshotDir: stringoptional directory override
Optional importMeta: ImportMetapass import.meta from calling module to resolve snapshot dir relative to it
Readonly className of the mocked class (from Base.name).
Private dataMaximum nested wrapping depth (default: Infinity). Set by @Mockable({ depth }).
Private dirtyPrivate poolReadonly snapshotAbsolute path to the snapshot file on disk.
Private stringEnable symbol serialization (default: false). Set by @Mockable({ symbols: true }).
Static Private _modeStatic modeCurrent global operating mode.
Private depoolPrivate getPrivate loadPrivate poolPrivate resolvePrivate visitStatic setSets the global operating mode.
Description
Per-class snapshot store that manages loading, recording, and persisting snapshot data.
Each decorated class gets its own
SnapshotStoreinstance, cached byclassName + snapshotDir. The store is shared across all instances of the decorated class within the same process.Features:
UNIMOCK_GZIP=1).pooled_stringentries.