mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-11-11 03:28:09 +03:00
13 lines
339 B
Bash
Executable File
13 lines
339 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
export ONLYDOODAD="${1:-default}"
|
|
export ROOT="${2:-}"
|
|
|
|
if test -n "${PERCY_TOKEN:-}"; then
|
|
npx percy exec -- mocha script/puppeteer-tests.js --timeout 100000 --exit
|
|
else
|
|
echo "PERCY_TOKEN not set, so skipping visual diff testing."
|
|
npx mocha script/puppeteer-tests.js --timeout 25000 --exit
|
|
fi
|