bigbluebutton-Github/bigbluebutton-tests/playwright/core/scripts/rewrite-snapshots.sh
Anton Georgiev ef300cf28e
chore: Fix typo (found by typos) (port) #19834
Co-authored-by: Stefan Weil <sw@weilnetz.de>
2024-03-18 09:58:53 -04:00

18 lines
457 B
Bash

#!/bin/bash
# Save string of folders containing reference snapshots files
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
echo "Running test suites: $folders_string"
# Run the test suites for these deleted folders
npm test $folders_string -- --project=chromium