Skip to content

Commit 67308ed

Browse files
committed
fix: snapshot tests skip if no perl found
1 parent 6b94272 commit 67308ed

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/unit/assert_snapshot_test.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ function test_unsuccessful_assert_match_snapshot_ignore_colors() {
8181
}
8282

8383
function test_assert_match_snapshot_with_placeholder() {
84-
if check_os::is_alpine; then
85-
skip "not supported on alpine" && return
84+
if ! dependencies::has_perl; then
85+
skip "perl not available" && return
8686
fi
8787

8888
local temp_dir
@@ -96,8 +96,8 @@ function test_assert_match_snapshot_with_placeholder() {
9696
}
9797

9898
function test_assert_match_snapshot_with_custom_placeholder() {
99-
if check_os::is_alpine; then
100-
skip "not supported on alpine" && return
99+
if ! dependencies::has_perl; then
100+
skip "perl not available" && return
101101
fi
102102

103103
local temp_dir

0 commit comments

Comments
 (0)