Skip to content

Commit

Permalink
Fix cy reconcile mangling snapshots.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ddnexus committed Jun 20, 2024
1 parent 9676848 commit ffb40c5
Show file tree
Hide file tree
Showing 2 changed files with 246 additions and 2 deletions.
15 changes: 14 additions & 1 deletion e2e/cy/reconcile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,23 @@

set -e

port=${2:-8080}

root="$(git rev-parse --show-toplevel)"
. "$root/scripts/cd-and-back.sh"
cd "$root/e2e"

echo "Reconciling the test snapshots..."
echo > snapshots.js
./cy-test

test () {
NODE_NO_WARNINGS=1 \
start-test "bundle exec pagy $app -p $port -q > /dev/null" "http://0.0.0.0:$port" \
"cypress run --quiet --config baseUrl=http://0.0.0.0:$port --spec cypress/e2e/$app.cy.ts"
}

for app in demo repro rails calendar
do
port=$((port+1))
test
done
Loading

0 comments on commit ffb40c5

Please sign in to comment.