bigbluebutton-Github/bigbluebutton-tests/playwright/core/scripts/rewrite-snapshots.sh

18 lines
457 B
Bash
Raw Normal View History

#!/bin/bash
# Save string of folders containing reference snapshots files
2023-06-16 04:59:19 +08:00
folders_string=$(find . -type d -name "*js-snapshots" -printf "%h\n" | sort | uniq | tr -d './' | tr '\n' ' ')
# Find folders
folders=$(find . -type d -name "*js-snapshots")
# Delete folders
for folder in $folders
do
rm -r "$folder"
done
2023-06-16 04:59:19 +08:00
echo "Running test suites: $folders_string"
# Run the test suites for these deleted folders
2023-06-16 04:59:19 +08:00
npm test $folders_string -- --project=chromium