extensions/snapshot/cleanup

Methods

(static) cleanSnapshots()

Clean snapshots file from removed snapshots If a snapshot file is empty, it's deleted Only files that have been referenced will be cleaned
Source:

(static) referenceSnapshot(file, snapshotName)

Store a snapshot name for a snapshot file This can be used after to clean up unused snapshots
Source:
Parameters:
Name Type Description
file string File path
snapshotName string Snapshot name

(static) resetReferences()

Clean snapshots names and files Used after tests to clear entries
Source: