Snapshot management utilities for bulk updates, pruning, and review.
Provides CLI-friendly operations for managing snapshots.
Snapshot management utilities for bulk updates, pruning, and review. Provides CLI-friendly operations for managing snapshots.
(cli-update)CLI-friendly update command.
Enables auto-update mode for the current session and prints instructions.
CLI-friendly update command. Enables auto-update mode for the current session and prints instructions.
(delete-all-snapshots!)Delete all snapshots in the snapshot directory.
WARNING: This is destructive and cannot be undone!
Returns a map with:
Delete all snapshots in the snapshot directory. WARNING: This is destructive and cannot be undone! Returns a map with: - :deleted-count - Number of snapshots deleted - :deleted - List of deleted snapshot keys
(disable-auto-update!)Disable automatic snapshot updates.
Disable automatic snapshot updates.
(enable-auto-update!)Enable automatic snapshot updates for the current session.
This sets :auto-update? to true in the runtime configuration. All subsequent snapshot mismatches will automatically update the snapshot.
Enable automatic snapshot updates for the current session. This sets :auto-update? to true in the runtime configuration. All subsequent snapshot mismatches will automatically update the snapshot.
(find-snap-calls-in-file file-path)Find all snap/snap! calls in a file.
Returns a sequence of maps with :type (:snap or :snap!) and :key/:line.
Find all snap/snap! calls in a file. Returns a sequence of maps with :type (:snap or :snap!) and :key/:line.
(find-snap-calls-in-file _file-path)Not implemented in ClojureScript.
Not implemented in ClojureScript.
(list-all-snapshots)List all snapshots in the snapshot directory.
Returns a sequence of snapshot info maps with :key, :path, and :name.
List all snapshots in the snapshot directory. Returns a sequence of snapshot info maps with :key, :path, and :name.
(print-summary)Print a human-readable summary of all snapshots.
Print a human-readable summary of all snapshots.
(prune-orphaned-snapshots!)Delete snapshots that are no longer referenced in code.
This is a placeholder - actual implementation would require:
For now, returns a not-implemented status.
Delete snapshots that are no longer referenced in code. This is a placeholder - actual implementation would require: 1. Scanning all test files for snap/snap! calls 2. Collecting all referenced snapshot keys 3. Deleting snapshots not in that set For now, returns a not-implemented status.
(scan-test-directory)Scan all test files for snap calls.
Returns a set of snapshot keys that are referenced in tests.
Scan all test files for snap calls. Returns a set of snapshot keys that are referenced in tests.
Not implemented in ClojureScript.
Not implemented in ClojureScript.
(snapshot-summary)Generate a summary of all snapshots.
Returns a map with:
Generate a summary of all snapshots. Returns a map with: - :total-count - Total number of snapshots - :snapshots - List of snapshot info maps - :snapshot-dir - Directory where snapshots are stored
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |