2018-01-18 18:42:19 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
if [[ ${RUN_E2E} == 1 ]]; then
|
|
|
|
|
|
|
|
WP_SITE_URL="http://localhost:8080"
|
|
|
|
|
2019-08-05 12:43:54 +00:00
|
|
|
# Set base url to that of e2e test suite.
|
2018-01-18 18:42:19 +00:00
|
|
|
export BASE_URL="$WP_SITE_URL"
|
|
|
|
|
|
|
|
# Run the tests
|
|
|
|
npm test
|
|
|
|
fi
|