github.com/pyroscope-io/pyroscope@v0.37.3-0.20230725203016-5f6947968bd0/scripts/cypress-screenshots.sh (about)

     1  #!/usr/bin/env bash
     2  
     3  set -euo pipefail
     4  
     5  CYPRESS_updateSnapshots="${CYPRESS_updateSnapshots:-true}"
     6  
     7  # we use net=host since cypress will hit http://localhost:4040
     8  # and run with user 1000 since it
     9  docker run \
    10    --net=host \
    11    --user 1000:1000 \
    12    -it --rm \
    13    -e CYPRESS_VIDEO=true \
    14    -e CYPRESS_COMPARE_SNAPSHOTS=true \
    15    -e CYPRESS_updateSnapshots="$CYPRESS_updateSnapshots" \
    16    -v $PWD:/cypress -w /cypress cypress/included:8.6.0 "$@"
    17