Function resetSnapshotStores

  • Returns void

    Description

    Releases every cached snapshot store, freeing all in-memory call/string/value pools and clearing the global registry. Any released store is re-created and lazily re-loaded from disk on the next getSnapshotStore for its class.

    Call this between host test files to bound memory in a long-running worker (e.g. vitest isolate: false). Make sure data has been flushed first.