Files
bortstack-forge/templates/flask-react/boilerplate/scripts/run-integration-tests.sh
T

9 lines
244 B
Bash
Executable File

#!/bin/sh
set -eu
root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
if [ ! -d "$root/react/node_modules" ]; then
echo 'integration tests unavailable: install react/node_modules first' >&2
exit 3
fi
(cd "$root/react" && npm run test:e2e)