-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsnapdiff.toml.example
More file actions
23 lines (18 loc) · 929 Bytes
/
Copy pathsnapdiff.toml.example
File metadata and controls
23 lines (18 loc) · 929 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# snapdiff per-project configuration. Place at the repo root.
[snapshots]
# Globs for snapshot PNG files, relative to repo root.
globs = ["**/__Snapshots__/*.png"]
# Regex applied to each matched file's path (relative to repo root).
# Named capture groups become axis names that appear in the review UI for
# grouping and bulk actions. Axis names are free-form.
# Note: use [^/_]+ for axis groups so they don't accidentally span underscores
# or slashes in surrounding path components (e.g. `__Snapshots__/` directories).
axis_regex = '(?P<test>[^/_]+)__(?P<state>[^/_]+)__(?P<device>[^/_]+)__(?P<theme>[^/_]+)__(?P<lang>[^/.]+)\.png'
# Base git ref to diff the working tree against.
base_ref = "HEAD"
[server]
# Address the web UI binds to.
bind = "0.0.0.0:7777"
# How long the daemon lingers after the reviewer hits Finalize, so the
# browser tab can render the success state before the process exits.
linger_seconds = 60