diff --git a/e2e/tests/ui-driven/install-dependencies.sh b/e2e/tests/ui-driven/install-dependencies.sh index be6e84f598..a903a3cc3e 100755 --- a/e2e/tests/ui-driven/install-dependencies.sh +++ b/e2e/tests/ui-driven/install-dependencies.sh @@ -5,7 +5,7 @@ cd $(dirname "$0") source ../../../.env -(cd ../../../editor.planx.uk && pnpm install --frozen-lockfile && REACT_APP_ENV=test pnpm build) +(cd ../../../editor.planx.uk && pnpm install --frozen-lockfile && REACT_APP_ENV=test pnpm build:ci) if [ -z "${CI}" ]; then echo "Please make sure you have Chrome installed on this machine." diff --git a/editor.planx.uk/package.json b/editor.planx.uk/package.json index d4133e2174..df48de7eab 100644 --- a/editor.planx.uk/package.json +++ b/editor.planx.uk/package.json @@ -167,6 +167,7 @@ "scripts": { "start": "craco start", "build": "CI=false && craco build", + "build:ci": "CI=true && craco build", "test": "react-scripts test", "test:silent": "react-scripts test --silent", "eject": "react-scripts eject",