We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d46213d commit a8104fdCopy full SHA for a8104fd
2 files changed
.github/workflows/tests.yml
@@ -131,4 +131,4 @@ jobs:
131
- name: Run Tests
132
run: |
133
docker run --rm -v "$(pwd)":/project -w /project nixos/nix:latest \
134
- nix-shell -p bash gnumake git --run "./bashunit --simple tests/"
+ nix-shell -p bash --run "./bashunit --simple tests/"
src/assert_snapshot.sh
@@ -20,6 +20,11 @@ function snapshot::match_with_placeholder() {
20
return
21
fi
22
23
+ if grep -P '' </dev/null >/dev/null 2>&1; then
24
+ printf '%s\0' "$actual" | grep -Pzo "$regex" >/dev/null
25
+ return
26
+ fi
27
+
28
# fallback: only supports single-line ignores
29
local pattern="${snapshot//$placeholder/.+}"
30
pattern=$(printf '%s' "$pattern" | sed -e 's/[][\.^$*+?{}|()]/\\&/g')
0 commit comments