mix optimistic_ui.snapshot (AshBackendDrivenOptimisticUi v0.1.0)

Copy Markdown View Source

Compares every rule of AshBackendDrivenOptimisticUi.Registry.rules/0 with the files in test/optimistic_ui/__snapshots__.

mix optimistic_ui.snapshot            # exits non-zero listing missing, changed and stale files
mix optimistic_ui.snapshot --update   # writes every rule, deletes files whose rule is gone

--dir points at another snapshot directory.

Summary

Functions

Writes (update?) or checks the snapshots of rules in dir; raises when a check finds drift.

Functions

sync(rules, dir, bool)

@spec sync(%{required(String.t()) => term()}, Path.t(), boolean()) :: :ok

Writes (update?) or checks the snapshots of rules in dir; raises when a check finds drift.